Allow for gt and gte selection of change_allow_user_price (#1746)

This commit is contained in:
Martin Gross
2020-08-07 11:54:27 +02:00
committed by GitHub
parent 7d9220ae3e
commit 750c3c5201
6 changed files with 118 additions and 4 deletions

View File

@@ -492,6 +492,10 @@ class Order(LockModel, LoggedModel):
if self.cancellation_requests.exists():
return False
if self.require_approval:
return False
positions = list(
self.positions.all().annotate(
has_variations=Exists(ItemVariation.objects.filter(item_id=OuterRef('item_id'))),