summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-15 13:33:53 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-15 13:33:53 +0200
commitca5f4c71fc93662fe56aa7588bf5a21fa4033571 (patch)
tree53e764a95ef24c63341e3280acd48fd59e23c4f9 /ishtar_common/models.py
parent209a201cd920692b9d7f3f33b42cc56d3bb27a1f (diff)
parentb82aae46b7af06fa7dc8b52a68b91784cea0118f (diff)
downloadIshtar-ca5f4c71fc93662fe56aa7588bf5a21fa4033571.tar.bz2
Ishtar-ca5f4c71fc93662fe56aa7588bf5a21fa4033571.zip
Merge branch 'master' into develop
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 5912c8377..445141bc2 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1169,6 +1169,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):
@@ -1190,6 +1192,11 @@ class IshtarSiteProfile(models.Model, Cached):
default=u'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=u'rgba(210,0,0,0.15)', max_length=200)