Browse Source

Fix: Should pop pins_to_add instead of pins_to_remove

pull/180/head
winkidney 4 years ago
parent
commit
acc8293374
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      core/serializers.py

+ 1
- 1
core/serializers.py View File

@@ -217,7 +217,7 @@ class BoardSerializer(serializers.HyperlinkedModelSerializer):

def create(self, validated_data):
validated_data.pop('pins_to_remove', None)
validated_data.pop('pins_to_remove', None)
validated_data.pop('pins_to_add', None)
user = self.context['request'].user
if Board.objects.filter(name=validated_data['name'], submitter=user).exists():
raise ValidationError(


Loading…
Cancel
Save