Commit e86cb9a7 authored by Michal Čihař's avatar Michal Čihař

Show oldest invoices first

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent a54b1fcf
......@@ -165,7 +165,7 @@ class Invoice(models.Model):
note = models.TextField(blank=True)
class Meta(object):
ordering = ['billing', 'start']
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