From 7ac641792c2388a25594c630bf32bc7accf332b7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 21 Aug 2016 17:27:20 +0200 Subject: Finds: add estimated value. Manage a currency for an Ishtar profile (refs #2969) --- ishtar_common/models.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ishtar_common/models.py') 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") -- cgit v1.2.3