summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
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 0bea21b..0d0fbdf 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):