Skip to content
Snippets Groups Projects
Commit 13797598 authored by ynerant's avatar ynerant
Browse files

Changelogs are read-only protected

parent 417cd5da
No related branches found
No related tags found
1 merge request!56Corrections
Pipeline #7906 passed with stages
in 4 minutes and 2 seconds
......@@ -15,3 +15,5 @@ class ChangelogSerializer(serializers.ModelSerializer):
class Meta:
model = Changelog
fields = '__all__'
# noinspection PyProtectedMember
read_only_fields = [f.name for f in model._meta.get_fields()] # Changelogs are read-only protected
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment