From 7a61bc47eae0568eb32b5529e4ca9c59da5150e6 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 18 Nov 2023 13:27:08 +0000 Subject: Make 'bearings' a read-only field on entrances --- core/forms.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'core/forms.py') diff --git a/core/forms.py b/core/forms.py index 05b982a..bd90490 100644 --- a/core/forms.py +++ b/core/forms.py @@ -180,11 +180,11 @@ class EntranceForm(ModelForm): required=False, widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Usually blank"}), ) - bearings = forms.CharField( - label="Bearings (obsolete)", - required=False, - widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Usually blank"}), - ) + # bearings = forms.CharField( + # label="Bearings (obsolete)", + # required=False, + # widget=HTMLarea(attrs={"height": "80%", "rows": 20, "placeholder": "Usually blank"}), + # ) tag_station = forms.CharField( required=False, widget=forms.TextInput(attrs={"size": "50","placeholder": "e.g. 1623.t2035-zb-03a"}), @@ -214,7 +214,8 @@ class EntranceForm(ModelForm): exclude = ( "cached_primary_slug", "filename", - "slug" + "slug", + "bearings" ) def clean(self): -- cgit v1.2.3