From 4091abf4f922190ed60a7ba7315fc4d14ae7f44e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 7 Feb 2009 17:50:54 -0600 Subject: Add DB index on country field Signed-off-by: Dan McGee --- main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') 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 @@ def flagged(self): ############################# 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) -- cgit v1.2.3-54-g00ecf