summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2007-11-17 19:23:38 +0100
committereliott <eliott@cactuswax.net>2007-11-17 19:26:16 +0100
commit50283888bfc75b6f7d12ad99950be00d8cb486c8 (patch)
tree29ffe170c63b7ca1aa76d645b5bf47417e9255f7
parent9bf2490514596ed5d23c414ffebe336d936b1e03 (diff)
downloadarchweb-50283888bfc75b6f7d12ad99950be00d8cb486c8.tar.gz
archweb-50283888bfc75b6f7d12ad99950be00d8cb486c8.tar.xz
Fix for FS#8547
-rw-r--r--packages/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/models.py b/packages/models.py
index c1b6c84..d9de3b1 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]