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

Add index on allow_translation_propagation

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ba6ab1fd
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('trans', '0034_auto_20150618_1140'),
]
operations = [
migrations.AlterField(
model_name='subproject',
name='allow_translation_propagation',
field=models.BooleanField(default=True, help_text='Whether translation updates in other components will cause automatic translation in this one', db_index=True, verbose_name='Allow translation propagation'),
),
]
...@@ -248,6 +248,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -248,6 +248,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
allow_translation_propagation = models.BooleanField( allow_translation_propagation = models.BooleanField(
verbose_name=ugettext_lazy('Allow translation propagation'), verbose_name=ugettext_lazy('Allow translation propagation'),
default=True, default=True,
db_index=True,
help_text=ugettext_lazy( help_text=ugettext_lazy(
'Whether translation updates in other components ' 'Whether translation updates in other components '
'will cause automatic translation in this one' 'will cause automatic translation in this one'
......
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