mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 10:57:19 +00:00
cave areacode requirement enforced
This commit is contained in:
@@ -149,6 +149,10 @@ class CaveForm(ModelForm):
|
||||
# self._errors["url"] = self.error_class(["This field is required."])
|
||||
# if cleaned_data.get("url") and cleaned_data.get("url").startswith("/"):
|
||||
# self._errors["url"] = self.error_class(["This field cannot start with a /."])
|
||||
if self.data.get("areacode") == "":
|
||||
self._errors["areacode"] = self.error_class(
|
||||
["An areacode, e.g. 1623, is required."]
|
||||
)
|
||||
return cleaned_data
|
||||
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ def check_new_signups(expedition):
|
||||
signups_clear = read_signups()
|
||||
# print(signups_clear)
|
||||
for slug in signups_clear:
|
||||
print(slug)
|
||||
print(f"check_new_signups: {slug}")
|
||||
p = Person.objects.get(slug=slug)
|
||||
pe = PersonExpedition.objects.update_or_create(person=p, expedition=expedition)
|
||||
# print("ADDING ",pe, expedition)
|
||||
|
||||
Reference in New Issue
Block a user