Verified Commit 8a7483a4 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix changing the pizza order status using PATCH

parent 8400b431
......@@ -38,6 +38,6 @@ class AdminOrderSerializer(serializers.ModelSerializer):
'member': _('Either specify a member or a name'),
'name': _('Either specify a member or a name'),
})
if not (attrs.get('member') or attrs.get('name')):
if not (attrs.get('member') or attrs.get('name')) and not self.partial:
attrs['member'] = self.context['request'].member
return super().validate(attrs)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment