mirror of https://gitlab.crans.org/bde/nk20
Changelogs are read-only protected
This commit is contained in:
parent
417cd5da04
commit
1379759803
|
@ -15,3 +15,5 @@ class ChangelogSerializer(serializers.ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Changelog
|
model = Changelog
|
||||||
fields = '__all__'
|
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