diff options
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 |
commit | bd5db67b05654d8c79b18035cf33853da3541d48 (patch) | |
tree | 8c890597afae74c44266ccbec14882a772a201d4 /ishtar_common/models.py | |
parent | 221599192781585f4c7ca20dffdcf781b14ac3b9 (diff) | |
download | Ishtar-bd5db67b05654d8c79b18035cf33853da3541d48.tar.bz2 Ishtar-bd5db67b05654d8c79b18035cf33853da3541d48.zip |
Geodata: gpkg, shp import
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 16 |
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, |