diff options
author | Dan McGee <dan@archlinux.org> | 2009-02-07 17:50:54 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-02-07 17:50:54 -0600 |
commit | 4091abf4f922190ed60a7ba7315fc4d14ae7f44e (patch) | |
tree | 5928c399bb240ac797e6f84b4bf3f7d9a0e46d3c /main/models.py | |
parent | 8d55746b7eb42b59d5cd5ab66b7d00dd16df8b38 (diff) |
Add DB index on country field
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r-- | main/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py index dcd49cdc..ec0d95e4 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) |