From fc50391805b08914e740c518301dd16087b00028 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 19 Sep 2024 18:35:51 +0200 Subject: ✨ archaeological sites sheet: add new fields - person sheet: add discoverer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/models.py | 2 +- archaeological_operations/templates/ishtar/sheet_site.html | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 471c104c9..5ccaf9b23 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -585,7 +585,7 @@ class ArchaeologicalSite( on_delete=models.SET_NULL, blank=True, null=True ) discoverer = models.ForeignKey(Person, verbose_name=_("Discoverer"), on_delete=models.SET_NULL, - blank=True, null=True) + blank=True, null=True, related_name="site_discovered") nature_of_site = models.ForeignKey(NatureOfSiteType, verbose_name=_("Nature of site"), on_delete=models.SET_NULL, blank=True, null=True) interpretation_level = models.ForeignKey( diff --git a/archaeological_operations/templates/ishtar/sheet_site.html b/archaeological_operations/templates/ishtar/sheet_site.html index 6cc9a3454..718947e19 100644 --- a/archaeological_operations/templates/ishtar/sheet_site.html +++ b/archaeological_operations/templates/ishtar/sheet_site.html @@ -41,10 +41,18 @@
{% field_flex "Other reference" item.other_reference %} + {% field_flex_multiple_obj _("Types") item 'types' %} + {% field_flex _("Discovery status") item.discovery_status %} + {% field_flex _("Current status") item.current_status %} + {% field_flex _("Nature of site") item.nature_of_site %} + {% field_flex _("Interpretation level") item.interpretation_level %} {% field_flex_multiple_obj "Periods" item 'periods' %} {% field_flex_multiple_obj "Remains" item 'remains' %} {% field_flex_multiple_obj "Cultural attributions" item 'cultural_attributions' %} + {% field_flex_detail _("Discoverer") item.discoverer %} {% field_flex_multiple "Collaborators" item.collaborators %} + {% field_flex_full _("Description") item.description "
" "
" %} + {% field_flex_full _("Public description") item.description "
" "
" %} {% field_flex_full "Comment" item.comment "
" "
" %}
@@ -75,6 +83,7 @@ {% else %} {% field_flex_detail_multiple_full "Towns" item.towns %} {% endif %} + {% field_flex_full _("Precise locality") item.precise_locality "
" "
" %} {% field_flex_full "National Geographic Institute locality" item.locality_ngi "
" "
" %} {% field_flex_full "Cadastral locality" item.locality_cadastral "
" "
" %} -- cgit v1.2.3