summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-05-25 04:13:46 +0200
committerDan McGee <dan@archlinux.org>2010-05-25 04:13:46 +0200
commite817efad53bc075ca94e6effd6eb3b6c838e2e63 (patch)
tree6bd4dae53aca75fef1f7480769ca2c42fe473e85 /main/models.py
parentb3e8354cdff4af8117feda0806a7c1104d5bb30e (diff)
parenta24e503a63599fb5495fd85cba5806a34c695bb6 (diff)
downloadarchweb-e817efad53bc075ca94e6effd6eb3b6c838e2e63.tar.gz
archweb-e817efad53bc075ca94e6effd6eb3b6c838e2e63.tar.xz
Merge branch 'redesign'
Conflicts: templates/public/download.html
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index 52e6895..6facc8b 100644
--- a/main/models.py
+++ b/main/models.py
@@ -72,6 +72,10 @@ class Mirror(models.Model):
rsync_user = models.CharField(max_length=50, blank=True, default='')
rsync_password = models.CharField(max_length=50, blank=True, default='')
notes = models.TextField(blank=True)
+
+ class Meta:
+ ordering = ('country', 'name')
+
def __unicode__(self):
return self.name
@@ -106,10 +110,13 @@ class MirrorRsync(models.Model):
class Donor(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=255, unique=True)
+
def __unicode__(self):
return self.name
+
class Meta:
db_table = 'donors'
+ ordering = ['name']
class News(models.Model):
id = models.AutoField(primary_key=True)