Vouchers: Fix validation of quota when copying a blocking voucher (Z#23152799) (#4133)

* Vouchers: Fix validation of quota when copying a blocking voucher

* Bugfixes
This commit is contained in:
Raphael Michel
2024-05-07 09:50:16 +02:00
committed by GitHub
parent 7a63498333
commit 5ca0833db1
2 changed files with 6 additions and 6 deletions

View File

@@ -460,7 +460,7 @@ class Voucher(LoggedModel):
new_quotas = set(
Quota.objects.filter(
pk__in=Quota.variations.through.objects.filter(
itemvariation__item=old_instance.item,
itemvariation__item=item,
quota__subevent=data.get('subevent'),
).values('quota_id')
)