summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-02-08 00:50:54 +0100
committerDan McGee <dan@archlinux.org>2009-02-08 00:50:54 +0100
commit4091abf4f922190ed60a7ba7315fc4d14ae7f44e (patch)
tree5928c399bb240ac797e6f84b4bf3f7d9a0e46d3c /main
parent8d55746b7eb42b59d5cd5ab66b7d00dd16df8b38 (diff)
downloadarchweb-4091abf4f922190ed60a7ba7315fc4d14ae7f44e.tar.gz
archweb-4091abf4f922190ed60a7ba7315fc4d14ae7f44e.tar.xz
Add DB index on country field
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index dcd49cd..ec0d95e 100644
--- a/main/models.py
+++ b/main/models.py
@@ -52,7 +52,7 @@ class PackageManager(models.Manager):
#############################
class Mirror(models.Model):
name = models.CharField(max_length=255)
- country = models.CharField(max_length=255)
+ country = models.CharField(max_length=255, db_index=True)
admin_email = models.EmailField(max_length=255, blank=True)
notes = models.CharField(max_length=255, blank=True)
public = models.BooleanField(default=True)