diff --git a/apps/logs/api/serializers.py b/apps/logs/api/serializers.py index 7de7bc1a7c6e518d32c6286b1e1b18ebbc89306e..108f20874a4e8c35087c6432b1312312bc722bd4 100644 --- a/apps/logs/api/serializers.py +++ b/apps/logs/api/serializers.py @@ -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