From 2948feacaf1d279a5afaada1b00c9e397b64084e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 6 Mar 2012 13:45:32 +0100 Subject: [PATCH] Add some indices for searching --- trans/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trans/models.py b/trans/models.py index 1af8e2f3b..f7b5cc0d6 100644 --- a/trans/models.py +++ b/trans/models.py @@ -409,11 +409,11 @@ class Unit(models.Model): translation = models.ForeignKey(Translation) checksum = models.CharField(max_length = 40, default = '', blank = True, db_index = True) location = models.TextField(default = '', blank = True) - context = models.TextField(default = '', blank = True) + context = models.TextField(default = '', blank = True, db_index = True) comment = models.TextField(default = '', blank = True) flags = models.TextField(default = '', blank = True) - source = models.TextField() - target = models.TextField(default = '', blank = True) + source = models.TextField(db_index = True) + target = models.TextField(default = '', blank = True, db_index = True) fuzzy = models.BooleanField(default = False, db_index = True) translated = models.BooleanField(default = False, db_index = True) position = models.IntegerField(db_index = True)