diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-11-18 13:27:08 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-11-18 13:27:08 +0000 |
commit | 7a61bc47eae0568eb32b5529e4ca9c59da5150e6 (patch) | |
tree | d52e0116f9b595da0e80d0a332aa282d40efce8c /core/forms.py | |
parent | 76688695b80ebf18e4a8a541a1d2595204bee02b (diff) | |
download | troggle-7a61bc47eae0568eb32b5529e4ca9c59da5150e6.tar.gz troggle-7a61bc47eae0568eb32b5529e4ca9c59da5150e6.tar.bz2 troggle-7a61bc47eae0568eb32b5529e4ca9c59da5150e6.zip |
Make 'bearings' a read-only field on entrances
Diffstat (limited to 'core/forms.py')
-rw-r--r-- | core/forms.py | 13 |
1 files changed, 7 insertions, 6 deletions
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): |