diff options
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, |