Skip to content

Commit 0abdacf

Browse files
author
Gabriel Monroy
committed
order containers oldest first for CLI output #16
1 parent 3f373db commit 0abdacf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

api/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,8 @@ def __str__(self):
630630
return '{0} {1}.{2}'.format(self.formation.id, self.type, self.num)
631631

632632
class Meta:
633+
get_latest_by = '-created'
634+
ordering = ['created']
633635
unique_together = (('formation', 'type', 'num'),)
634636

635637

0 commit comments

Comments
 (0)