diff options
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 |
commit | 3f698444f50b2030d7feec21c6f8a60669484bb5 (patch) | |
tree | d7cf1f8c7d31f3a8a51d2c532c6b6ba82f440280 /ishtar_common/models.py | |
parent | f530c2b19904787864b6a9cc1e988da11e524b4b (diff) | |
download | Ishtar-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.py | 5 |
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") |