forked from CGM_Public/pretix_original
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