forked from CGM_Public/pretix_original
Implement Invoice.__repr__
This commit is contained in:
@@ -192,6 +192,9 @@ class Invoice(models.Model):
|
|||||||
unique_together = ('organizer', 'prefix', 'invoice_no')
|
unique_together = ('organizer', 'prefix', 'invoice_no')
|
||||||
ordering = ('date', 'invoice_no',)
|
ordering = ('date', 'invoice_no',)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return '<Invoice {} / {}>'.format(self.full_invoice_no, self.pk)
|
||||||
|
|
||||||
|
|
||||||
class InvoiceLine(models.Model):
|
class InvoiceLine(models.Model):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user