Commit e7ae3be9 authored by Thom Wiggers's avatar Thom Wiggers 📐 Committed by Sébastiaan Versteeg
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

(cherry picked from commit 2fb4a6e2)

8a7483a4 Fix changing the pizza order status using PATCH
parent 0ba1c7e4
......@@ -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)
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