Commit 2948feac authored by Michal Čihař's avatar Michal Čihař

Add some indices for searching

parent 485dd5f8
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment