mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Implement Invoice.__repr__
This commit is contained in:
@@ -192,6 +192,9 @@ class Invoice(models.Model):
|
||||
unique_together = ('organizer', 'prefix', 'invoice_no')
|
||||
ordering = ('date', 'invoice_no',)
|
||||
|
||||
def __repr__(self):
|
||||
return '<Invoice {} / {}>'.format(self.full_invoice_no, self.pk)
|
||||
|
||||
|
||||
class InvoiceLine(models.Model):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user