Add some indices for searching

This commit is contained in:
Michal Čihař 2012-03-06 13:45:32 +01:00
parent 485dd5f8d1
commit 2948feacaf

View File

@ -409,11 +409,11 @@ class Unit(models.Model):
translation = models.ForeignKey(Translation) translation = models.ForeignKey(Translation)
checksum = models.CharField(max_length = 40, default = '', blank = True, db_index = True) checksum = models.CharField(max_length = 40, default = '', blank = True, db_index = True)
location = models.TextField(default = '', blank = 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) comment = models.TextField(default = '', blank = True)
flags = models.TextField(default = '', blank = True) flags = models.TextField(default = '', blank = True)
source = models.TextField() source = models.TextField(db_index = True)
target = models.TextField(default = '', blank = True) target = models.TextField(default = '', blank = True, db_index = True)
fuzzy = models.BooleanField(default = False, db_index = True) fuzzy = models.BooleanField(default = False, db_index = True)
translated = models.BooleanField(default = False, db_index = True) translated = models.BooleanField(default = False, db_index = True)
position = models.IntegerField(db_index = True) position = models.IntegerField(db_index = True)