Commit 2fb4a6e2 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'fix/567-pizzas-order-status-change' into 'master'

Fix changing the pizza order status using PATCH

Closes #567

See merge request !713
parents 8400b431 8a7483a4
...@@ -38,6 +38,6 @@ class AdminOrderSerializer(serializers.ModelSerializer): ...@@ -38,6 +38,6 @@ class AdminOrderSerializer(serializers.ModelSerializer):
'member': _('Either specify a member or a name'), 'member': _('Either specify a member or a name'),
'name': _('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 attrs['member'] = self.context['request'].member
return super().validate(attrs) return super().validate(attrs)
Supports Markdown
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