diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-21 17:27:20 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-21 17:27:20 +0200 |
commit | 7ac641792c2388a25594c630bf32bc7accf332b7 (patch) | |
tree | 56f20aa141a5b4b076f9f195c7c84d79fda14e51 /ishtar_common/models.py | |
parent | d7daac762c36d35737f36e46d5a13f47cce87351 (diff) | |
download | Ishtar-7ac641792c2388a25594c630bf32bc7accf332b7.tar.bz2 Ishtar-7ac641792c2388a25594c630bf32bc7accf332b7.zip |
Finds: add estimated value. Manage a currency for an Ishtar profile (refs #2969)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 6438a1f2c..a013a3456 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -872,6 +872,9 @@ def get_external_id(key, item): dct[fkey] = obj return formula.format(**dct) +CURRENCY = ((u"€", _(u"Euro")), + (u"$", _(u"US dollar"))) + class IshtarSiteProfile(models.Model, Cached): slug_field = 'slug' @@ -927,6 +930,8 @@ class IshtarSiteProfile(models.Model, Cached): u"application might be unusable and import of external " u"data can be destructive.")) active = models.BooleanField(_(u"Current active"), default=False) + currency = models.CharField(_(u"Currency"), default=u"€", + choices=CURRENCY, max_length='5') class Meta: verbose_name = _(u"Ishtar site profile") |