Added "comments" and "tags" to vouchers

This commit is contained in:
Raphael Michel
2016-06-01 12:45:32 +02:00
parent 8c188641ee
commit cc9a9723fe
6 changed files with 59 additions and 9 deletions

View File

@@ -101,6 +101,18 @@ class Voucher(LoggedModel):
"If enabled, the voucher is valid for any product affected by this quota."
)
)
tag = models.CharField(
max_length=255,
verbose_name=_("Tag"),
blank=True,
help_text=_("You can use this field to group multiple vouchers together. If you enter the same value for "
"multiple vouchers, you can get statistics on how many of them have been redeemed etc.")
)
comment = models.TextField(
blank=True, verbose_name=_("Comment"),
help_text=_("The text entered in this field will not be visible to the user and is available for your "
"convenience.")
)
class Meta:
verbose_name = _("Voucher")