Skip to content

Commit

Permalink
question -- do we need this?
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed Jan 25, 2022
1 parent c17af8d commit e2e7a82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/desecapi/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,11 @@ def to_internal_value(self, data):
raise serializers.ValidationError({api_settings.NON_FIELD_ERRORS_KEY: msg})

# add extra fields added by the user
unpacked_data.update(**data)
data = {**data, **unpacked_data}
#unpacked_data.update(**data)

# do the regular business
return super().to_internal_value(unpacked_data)
return super().to_internal_value(data)

def act(self):
self.instance.act()
Expand Down

0 comments on commit e2e7a82

Please sign in to comment.