mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-10-31 07:49:57 +01:00 
			
		
		
		
	Changelogs are read-only protected
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user