mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-23 07:52:23 +00:00
Changelogs are read-only protected
This commit is contained in:
parent
417cd5da04
commit
1379759803
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user