Voucher form: Add quota in help text

This commit is contained in:
Raphael Michel
2024-02-07 09:59:32 +01:00
parent 0871482681
commit 70d32ea1aa
2 changed files with 4 additions and 2 deletions

View File

@@ -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(

View File

@@ -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
)