mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 14:37:53 +00:00
tidy trailing slash everywhere & fix tests
This commit is contained in:
@@ -23,7 +23,7 @@ from troggle.core.utils import (
|
||||
write_and_commit,
|
||||
)
|
||||
from troggle.parsers.users import get_encryptor, ENCRYPTED_DIR, how_many_previous_expos
|
||||
|
||||
from .auth import login_required_if_public
|
||||
|
||||
"""The new user signup form and expo user management system in 2025.
|
||||
"""
|
||||
@@ -50,7 +50,7 @@ def signupok(request):
|
||||
{"year": SIGNUP_YEAR, "dates": SIGNUP_DATES, "signup_user": signup_user, "signedup_people": signedup_people},
|
||||
)
|
||||
|
||||
|
||||
@login_required_if_public
|
||||
def signup(request):
|
||||
"""Displays and processes the applicant signup form for the forthcoming expo
|
||||
The user must be logged-on as a personal login and that is
|
||||
@@ -75,11 +75,12 @@ def signup(request):
|
||||
if len(people) == 1:
|
||||
signup_person = people[0]
|
||||
form_read_only = False
|
||||
# else:
|
||||
experience = how_many_previous_expos(signup_person)
|
||||
else:
|
||||
experience = 0
|
||||
# No, just make the form read-only.
|
||||
# return HttpResponseRedirect("/accounts/login")
|
||||
|
||||
experience = how_many_previous_expos(signup_person)
|
||||
|
||||
if request.method == "POST": # If the form has been submitted...
|
||||
pageform = ExpoSignupForm(request.POST) # A form bound to the POST data
|
||||
|
||||
Reference in New Issue
Block a user