summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-03-31 17:38:31 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:21:00 +0100
commit810cf25c85cd44fe1610db4792693983a81c8818 (patch)
tree8c890597afae74c44266ccbec14882a772a201d4 /ishtar_common/models.py
parent5dfc4cfee03d1bb8cc85f7148d9e3ce3344a4e30 (diff)
downloadIshtar-810cf25c85cd44fe1610db4792693983a81c8818.tar.bz2
Ishtar-810cf25c85cd44fe1610db4792693983a81c8818.zip
Geodata: gpkg, shp import
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 5b9d48357..2bd983906 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -203,6 +203,7 @@ __all__ = [
"Department",
"State",
"CompleteIdentifierItem",
+ "GeoVectorData",
]
logger = logging.getLogger(__name__)
@@ -1413,9 +1414,22 @@ class IshtarSiteProfile(models.Model, Cached):
blank=True,
null=True,
help_text=_(
- "Spatial Reference System used for display when no SRS is " "defined"
+ "Spatial Reference System used for display when no SRS is defined"
),
on_delete=models.SET_NULL,
+ related_name="profile_display_srs"
+ )
+ srs = models.ForeignKey(
+ SpatialReferenceSystem,
+ verbose_name=_("Spatial Reference System in database"),
+ blank=True,
+ null=True,
+ help_text=_(
+ "Set it to the most used spatial reference system. Warning: after change "
+ "launch the ishtar_migrate_srid script."
+ ),
+ on_delete=models.SET_NULL,
+ related_name="profile_srs"
)
default_language = models.ForeignKey(
Language,