Browse Source

Merge pull request #347 from kerenon/fix-346

Fixes #346
pull/348/head
Ji Qu 2 years ago
committed by GitHub
parent
commit
5d6f3ddba5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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