2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-01-19 03:42:56 +00:00

spelix fixedpts allow

This commit is contained in:
2025-09-25 22:18:20 +03:00
parent 68621a4a92
commit 6025f0b1dc

View File

@@ -245,7 +245,7 @@ class EntranceForm(ModelForm):
cleaned_data = super(EntranceForm, self).clean() # where is this code hidden? How does this work??
for station in ["tag_station", "other_station"]:
print(f"{station} -- {self.data.get(station)[:4]}")
if self.data.get(station)[:5] not in ["1623.", "1626.", "1627.", "1624.", ""]:
if self.data.get(station)[:5] not in ["1623.", "1626.", "1627.", "1624.", "", "speli"]: # spelix1623
self._errors[station] = self.error_class(
["An Austrian kataster areacode, i.e. 1623, 1626, 1627, or 1624 prefix is required."]
)