From c7b3e8aff0ae5eb447bf214ba012f98bc497c476 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sun, 30 Apr 2023 21:41:17 +0100 Subject: [PATCH] Added an ordering of entrances --- core/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/forms.py b/core/forms.py index 5cf2735..b68e259 100644 --- a/core/forms.py +++ b/core/forms.py @@ -176,6 +176,8 @@ class EntranceForm(ModelForm): alt = forms.CharField(required=False, label="Altitude (m)") url = forms.CharField(required=False, label="URL [usually blank]", widget=forms.TextInput(attrs={"size": "45"})) + field_order = ['name', 'entrance_description', 'explorers', 'map_description', 'location_description', 'lastvisit', 'approach', 'underground_description', 'photo', 'marking_comment', 'findability_description', 'other_description', 'bearings', 'other_station', 'tag_station', 'exact_station', 'northing', 'easting', 'lat_wgs84', 'long_wgs84', 'alt', 'url'] + class Meta: model = Entrance exclude = (