diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/models.py b/packages/models.py index c1b6c84d..d9de3b14 100644 --- a/packages/models.py +++ b/packages/models.py @@ -28,6 +28,7 @@ class Repo(models.Model): name = models.CharField(maxlength=255) class Meta: db_table = 'repos' + ordering = ['name'] def last_update(self): try: latest = Package.objects.filter(repo__name__exact=self.name).order_by('-last_update')[0] |