mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 13:09:16 +02:00
Fixed broken metadata update on track without license
This commit is contained in:
parent
e8c4deaa10
commit
b36b03383e
1 changed files with 4 additions and 1 deletions
|
@ -114,7 +114,10 @@ class UpdateMutationSerializer(serializers.ModelSerializer, MutationSerializer):
|
|||
# to ensure we store ids instead of model instances in our json
|
||||
# payload
|
||||
for field, attr in self.serialized_relations.items():
|
||||
data[field] = getattr(data[field], attr)
|
||||
try:
|
||||
data[field] = getattr(data[field], attr)
|
||||
except KeyError:
|
||||
continue
|
||||
return data
|
||||
|
||||
def create(self, validated_data):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue