core: make filefields readonly

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-16 17:34:55 +02:00
parent 10cb60f48e
commit 759bf59780
4 changed files with 781 additions and 15 deletions

View File

@ -68,7 +68,7 @@ class Pagination(pagination.PageNumberPagination):
"total_pages",
"start_index",
"end_index",
]
],
},
"results": schema,
},

View File

@ -58,6 +58,9 @@ class ApplicationSerializer(ModelSerializer):
"meta_publisher",
"policy_engine_mode",
]
extra_kwargs = {
"meta_icon": {"read_only": True},
}
class ApplicationViewSet(ModelViewSet):

View File

@ -61,6 +61,9 @@ class FlowSerializer(ModelSerializer):
"cache_count",
"policy_engine_mode",
]
extra_kwargs = {
"background": {"read_only": True},
}
class FlowDiagramSerializer(Serializer):

File diff suppressed because it is too large Load Diff