summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-15 13:04:33 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-15 13:08:54 +0200
commitb82aae46b7af06fa7dc8b52a68b91784cea0118f (patch)
tree206d8ed42847e8a3086fd0a32c16da5391e53e4b /ishtar_common/models.py
parent1fb316c83fb50b3884c29a44cb95b2383a1a35bd (diff)
downloadIshtar-b82aae46b7af06fa7dc8b52a68b91784cea0118f.tar.bz2
Ishtar-b82aae46b7af06fa7dc8b52a68b91784cea0118f.zip
Can manage find index by context record (refs #3590)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index f1de8c60a..85bef32f3 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1150,6 +1150,8 @@ def get_external_id(key, item):
CURRENCY = ((u"€", _(u"Euro")),
(u"$", _(u"US dollar")))
+FIND_INDEX_SOURCE = ((u"O", _(u"Operations")),
+ (u"CR", _(u"Context records")))
class IshtarSiteProfile(models.Model, Cached):
@@ -1171,6 +1173,11 @@ class IshtarSiteProfile(models.Model, Cached):
default='rgba(210,200,0,0.2)', max_length=200)
find = models.BooleanField(_(u"Finds module"), default=False,
help_text=_(u"Need context records module"))
+ find_index = models.CharField(
+ _(u"Find index is based on"), default='O', max_length=2,
+ choices=FIND_INDEX_SOURCE,
+ help_text=_(u"To prevent irrlevant indexes, change this parameter "
+ u"only if there is no find in the database"))
find_color = models.CharField(
_(u"CSS color code for find module"),
default='rgba(210,0,0,0.15)', max_length=200)