Index the value field of index nodes.

This commit is contained in:
Roberto Rosario
2015-07-29 13:32:42 -04:00
parent 2e9a809a4e
commit 8072db07dd
2 changed files with 21 additions and 1 deletions

View File

@@ -125,7 +125,7 @@ class IndexInstanceNode(MPTTModel):
verbose_name=_('Index template node')
)
value = models.CharField(
blank=True, max_length=128, verbose_name=_('Value')
blank=True, db_index=True, max_length=128, verbose_name=_('Value')
)
documents = models.ManyToManyField(
Document, related_name='node_instances', verbose_name=_('Documents')