mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Order vouchers by code by default (#525)
This commit is contained in:
committed by
Raphael Michel
parent
6964bf7c8a
commit
6df3a7d4b5
@@ -165,6 +165,7 @@ class Voucher(LoggedModel):
|
||||
verbose_name = _("Voucher")
|
||||
verbose_name_plural = _("Vouchers")
|
||||
unique_together = (("event", "code"),)
|
||||
ordering = ('code', )
|
||||
|
||||
def __str__(self):
|
||||
return self.code
|
||||
|
||||
Reference in New Issue
Block a user