core: make filefields readonly
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
10cb60f48e
commit
759bf59780
|
@ -68,7 +68,7 @@ class Pagination(pagination.PageNumberPagination):
|
|||
"total_pages",
|
||||
"start_index",
|
||||
"end_index",
|
||||
]
|
||||
],
|
||||
},
|
||||
"results": schema,
|
||||
},
|
||||
|
|
|
@ -58,6 +58,9 @@ class ApplicationSerializer(ModelSerializer):
|
|||
"meta_publisher",
|
||||
"policy_engine_mode",
|
||||
]
|
||||
extra_kwargs = {
|
||||
"meta_icon": {"read_only": True},
|
||||
}
|
||||
|
||||
|
||||
class ApplicationViewSet(ModelViewSet):
|
||||
|
|
|
@ -61,6 +61,9 @@ class FlowSerializer(ModelSerializer):
|
|||
"cache_count",
|
||||
"policy_engine_mode",
|
||||
]
|
||||
extra_kwargs = {
|
||||
"background": {"read_only": True},
|
||||
}
|
||||
|
||||
|
||||
class FlowDiagramSerializer(Serializer):
|
||||
|
|
788
schema.yml
788
schema.yml
File diff suppressed because it is too large
Load Diff
Reference in New Issue