summaryrefslogtreecommitdiff
path: root/packages/models.py
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2007-11-17 13:23:38 -0500
committereliott <eliott@cactuswax.net>2007-11-17 13:26:16 -0500
commit50283888bfc75b6f7d12ad99950be00d8cb486c8 (patch)
tree29ffe170c63b7ca1aa76d645b5bf47417e9255f7 /packages/models.py
parent9bf2490514596ed5d23c414ffebe336d936b1e03 (diff)
Fix for FS#8547
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]