diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py index 6fdb862..51cf89a 100644 --- a/main/models.py +++ b/main/models.py @@ -67,6 +67,9 @@ class Arch(models.Model): def __unicode__(self): return self.name + def __lt__(self, other): + return self.name < other.name + class Meta: db_table = 'arches' ordering = ['name'] @@ -85,6 +88,9 @@ class Repo(models.Model): def __unicode__(self): return self.name + def __lt__(self, other): + return self.name < other.name + class Meta: db_table = 'repos' ordering = ['name'] |