Actually index is not best choice here...

Revert "Add some indices for searching"

This reverts commit 2948feacaf.
This commit is contained in:
Michal Čihař 2012-03-06 13:48:48 +01:00
parent 2948feacaf
commit 5fb7afffbd

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, db_index = True) context = models.TextField(default = '', blank = 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(db_index = True) source = models.TextField()
target = models.TextField(default = '', blank = True, db_index = True) target = models.TextField(default = '', blank = 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)