summaryrefslogtreecommitdiff
path: root/packages/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/models.py')
-rw-r--r--packages/models.py1
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]