From 688a1795e7a56f60ec83c6f3866295f38ade42fe Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 17 Nov 2023 21:41:07 +0200 Subject: [PATCH] Removing cave field underground_centre_line --- core/forms.py | 10 +++++----- templates/cave.html | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/core/forms.py b/core/forms.py index af3b171..05b982a 100644 --- a/core/forms.py +++ b/core/forms.py @@ -67,10 +67,10 @@ class CaveForm(ModelForm): label = "Kataster code, see below", widget=forms.TextInput(attrs={"placeholder": "see example below"}) ) - underground_centre_line = forms.CharField( - required=False, - widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter page content (using HTML)"}), - ) + # underground_centre_line = forms.CharField( + # required=False, + # widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter page content (using HTML)"}), + # ) notes = forms.CharField( required=False, widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Enter page content (using HTML)"}), @@ -92,7 +92,7 @@ class CaveForm(ModelForm): class Meta: model = Cave - exclude = ("filename","url") + exclude = ("filename","url", "underground_centre_line") field_order = ['unofficial_number', 'kataster_number', 'official_name', 'underground_description', 'survey', 'underground_centre_line', 'explorers', 'equipment', 'notes', 'references', 'description_file', 'survex_file', 'areacode', 'length', 'depth', 'extent', 'kataster_code', 'kataster_status' ] diff --git a/templates/cave.html b/templates/cave.html index 746c257..81357a1 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -97,12 +97,15 @@ {{ cave.kataster_status|safe }} {% endif %} {% endcomment %} + {% if cave.explorers %}

Explorers

{{ cave.explorers|safe }}