Commit 1ed5c0b1 authored by Michal Čihař's avatar Michal Čihař

Add default ordering for invoices

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 4d75876c
......@@ -161,6 +161,9 @@ class Invoice(models.Model):
ref = models.CharField(blank=True, max_length=50)
note = models.TextField(blank=True)
class Meta(object):
ordering = ['billing', 'start']
def __str__(self):
return '{0} - {1}: {2}'.format(self.start, self.end, self.billing)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment