Volunteers need to have a ticket before they can apply to volunteer.

This commit is contained in:
Christopher Neugebauer 2016-12-10 16:39:30 +11:00
parent ae9f1e0b67
commit b783901e98

View file

@ -350,8 +350,8 @@ def session_detail(request, session_id):
runner_denied = True runner_denied = True
if request.method == "POST" and request.user.is_authenticated(): if request.method == "POST" and request.user.is_authenticated():
if not hasattr(request.user, "profile") or not request.user.profile.is_complete: if not hasattr(request.user, "attendee") or not request.user.attendee.completed_registration:
response = redirect("profile_edit") response = redirect("guided_registration")
response["Location"] += "?next=%s" % request.path response["Location"] += "?next=%s" % request.path
return response return response