2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 03:27:26 +00:00

Make 'bearings' a read-only field on entrances

This commit is contained in:
2023-11-18 13:27:08 +00:00
parent 76688695b8
commit 7a61bc47ea
4 changed files with 14 additions and 10 deletions

View File

@@ -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):