Skip to content
Snippets Groups Projects

Fix changing the pizza order status using PATCH

Merged Ghost User requested to merge fix/567-pizzas-order-status-change into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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)
Loading