diff options
| 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 | 
| commit | a587679f9a1cf38a1c450370d70eaf52fd71af74 (patch) | |
| tree | 206d8ed42847e8a3086fd0a32c16da5391e53e4b /ishtar_common/models.py | |
| parent | c18fccf766ea9fd82ca82d8e4a7938c83512c416 (diff) | |
| download | Ishtar-a587679f9a1cf38a1c450370d70eaf52fd71af74.tar.bz2 Ishtar-a587679f9a1cf38a1c450370d70eaf52fd71af74.zip | |
Can manage find index by context record (refs #3590)
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 7 | 
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) | 
