Browse Source

Fixes #346

pull/347/head
Laszlo Nagy 2 years ago
parent
commit
c0d9e8af76
No known key found for this signature in database GPG Key ID: BC5A46D766BF10B3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      core/serializers.py

+ 2
- 0
core/serializers.py View File

@@ -141,6 +141,8 @@ class PinSerializer(serializers.HyperlinkedModelSerializer):
tags = validated_data.pop('tag_list', None)
if tags:
instance.tags.set(*tags)
else:
instance.tags.set()
# change for image-id or image is not allowed
validated_data.pop('image_by_id', None)
return super(PinSerializer, self).update(instance, validated_data)


Loading…
Cancel
Save