summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-10-26 17:11:11 -0500
committerDan McGee <dan@archlinux.org>2012-10-26 17:11:11 -0500
commitbdee24b9d1279de67dd238e3644c2efff314bd7b (patch)
treedf6fd4b2fbc8787f984611708d8372efc13284b4 /packages
parent2ee662c77cf559d6ea82c9096533abfcd38f4801 (diff)
Cleanup meta model attributes
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/models.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/models.py b/packages/models.py
index 0bea21b1..0d0fbdf2 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -329,6 +329,9 @@ class PackageGroup(models.Model):
def __unicode__(self):
return "%s: %s" % (self.name, self.pkg)
+ class Meta:
+ ordering = ('name',)
+
class License(models.Model):
pkg = models.ForeignKey(Package, related_name='licenses')
@@ -338,7 +341,7 @@ class License(models.Model):
return self.name
class Meta:
- ordering = ['name']
+ ordering = ('name',)
class RelatedToBase(models.Model):
@@ -435,7 +438,7 @@ class RelatedToBase(models.Model):
class Meta:
abstract = True
- ordering = ['name']
+ ordering = ('name',)
class Depend(RelatedToBase):