From 70d32ea1aa018271d79aa3481fe28ba98ec5e37a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 7 Feb 2024 09:59:32 +0100 Subject: [PATCH] Voucher form: Add quota in help text --- src/pretix/base/models/vouchers.py | 3 ++- src/pretix/control/forms/vouchers.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pretix/base/models/vouchers.py b/src/pretix/base/models/vouchers.py index 7ad46d8f07..0a60ad802f 100644 --- a/src/pretix/base/models/vouchers.py +++ b/src/pretix/base/models/vouchers.py @@ -251,7 +251,8 @@ class Voucher(LoggedModel): null=True, blank=True, on_delete=models.PROTECT, # We use a fake version of SET_NULL in Item.delete() help_text=_( - "This product is added to the user's cart if the voucher is redeemed." + "This product is added to the user's cart if the voucher is redeemed. Instead of a specific product, you " + "can also select a quota. In this case, all products assigned to this quota can be selected." ) ) variation = models.ForeignKey( diff --git a/src/pretix/control/forms/vouchers.py b/src/pretix/control/forms/vouchers.py index 4b53a35994..95357f2e8c 100644 --- a/src/pretix/control/forms/vouchers.py +++ b/src/pretix/control/forms/vouchers.py @@ -63,7 +63,8 @@ class VoucherForm(I18nModelForm): itemvar = FakeChoiceField( label=_("Product"), help_text=_( - "This product is added to the user's cart if the voucher is redeemed." + "This product is added to the user's cart if the voucher is redeemed. Instead of a specific product, you " + "can also select a quota. In this case, all products assigned to this quota can be selected." ), required=True )