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 | 7db3c03eed446df0f2dfb84dec9467cf43589e63 (patch) | |
tree | d7cf1f8c7d31f3a8a51d2c532c6b6ba82f440280 /ishtar_common/models.py | |
parent | b665a5ecec08e057e78320c43c702ebefb5a7a29 (diff) | |
download | Ishtar-7db3c03eed446df0f2dfb84dec9467cf43589e63.tar.bz2 Ishtar-7db3c03eed446df0f2dfb84dec9467cf43589e63.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") |