summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-02-04 12:46:49 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-24 19:38:56 +0200
commit3f698444f50b2030d7feec21c6f8a60669484bb5 (patch)
treed7cf1f8c7d31f3a8a51d2c532c6b6ba82f440280 /ishtar_common/models.py
parentf530c2b19904787864b6a9cc1e988da11e524b4b (diff)
downloadIshtar-3f698444f50b2030d7feec21c6f8a60669484bb5.tar.bz2
Ishtar-3f698444f50b2030d7feec21c6f8a60669484bb5.zip
Map: manage default extent and zoom to current extent
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 76e415368..ea6bd3bf0 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -2241,6 +2241,11 @@ class IshtarSiteProfile(models.Model, Cached):
default=True)
currency = models.CharField(_(u"Currency"), default=u"€",
choices=CURRENCY, max_length=5)
+ default_center = models.PointField(
+ _(u"Maps - default center"),
+ default='SRID=4326;POINT(2.4397 46.5528)')
+ default_zoom = models.IntegerField(
+ _(u"Maps - default zoom"), default=6)
class Meta:
verbose_name = _(u"Ishtar site profile")