diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-05-22 20:31:19 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:21:00 +0100 |
commit | df8a001203e9e936ae5bae4e06f5631d87fb3ada (patch) | |
tree | b7bece5905a4a433cbde9132bec669669f1c8ea0 /ishtar_common/models_common.py | |
parent | 3ff82007369b115406c2f2effbdfb13188167bb7 (diff) | |
download | Ishtar-df8a001203e9e936ae5bae4e06f5631d87fb3ada.tar.bz2 Ishtar-df8a001203e9e936ae5bae4e06f5631d87fb3ada.zip |
Geodata - geo forms: new forms - many adaptations
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r-- | ishtar_common/models_common.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 35dd4aef1..0c2d67140 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2100,6 +2100,15 @@ GEOMETRY_TYPE_LBL = { class GeoVectorData(Imported, OwnPerms): SLUG = "geovectordata" + RELATED_MODELS = [ + "related_items_ishtar_common_town", + "related_items_archaeological_operations_operation", + "related_items_archaeological_operations_archaeologicalsite", + "related_items_archaeological_context_records_contextrecord", + "related_items_archaeological_finds_basefind", + "related_items_archaeological_warehouse_warehouse", + "related_items_archaeological_warehouse_container", + ] name = models.TextField(_("Name"), default="-") source_content_type = models.ForeignKey( @@ -2115,6 +2124,7 @@ class GeoVectorData(Imported, OwnPerms): null=True, on_delete=models.PROTECT, verbose_name=_("Origin"), + help_text=_("For instance: topographical surveys, georeferencing, ..."), ) data_type = models.ForeignKey( GeoDataType, @@ -2122,6 +2132,7 @@ class GeoVectorData(Imported, OwnPerms): null=True, on_delete=models.PROTECT, verbose_name=_("Data type"), + help_text=_("For instance: outline, z-sup, ..."), ) provider = models.ForeignKey( GeoProviderType, @@ -2129,6 +2140,7 @@ class GeoVectorData(Imported, OwnPerms): null=True, on_delete=models.PROTECT, verbose_name=_("Provider"), + help_text=_("Data provider"), ) comment = models.TextField(_("Comment"), default="", blank=True) x = models.FloatField(_("X"), blank=True, null=True, help_text=_("User input")) |