mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Add __str__ methods to more models
This commit is contained in:
@@ -233,3 +233,6 @@ class InvoiceLine(models.Model):
|
||||
|
||||
class Meta:
|
||||
ordering = ('position', 'pk')
|
||||
|
||||
def __str__(self):
|
||||
return 'Line {} of invoice {}'.format(self.position, self.invoice)
|
||||
|
||||
Reference in New Issue
Block a user