Commit ecc45bff authored by Michal Čihař's avatar Michal Čihař

Add dbindex on target

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ef3da498
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('trans', '0035_auto_20150630_1208'),
]
operations = [
migrations.AlterField(
model_name='unit',
name='target',
field=models.TextField(default=b'', db_index=True, blank=True),
),
]
......@@ -319,7 +319,7 @@ class Unit(models.Model):
flags = models.TextField(default='', blank=True)
source = models.TextField()
previous_source = models.TextField(default='', blank=True)
target = models.TextField(default='', blank=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