Fixes a minor oops

This commit is contained in:
Christopher Neugebauer 2016-09-02 16:14:58 +10:00
parent 85398a5cf5
commit e7556b02b7

View file

@ -207,8 +207,8 @@ def attendee(request, form, attendee_id=None):
if attendee_id is None and not form.has_changed(): if attendee_id is None and not form.has_changed():
return attendee_list(request) return attendee_list(request)
if attendee_id is None: if form.cleaned_data["user"] is not None:
attendee_id = form.user attendee_id = form.cleaned_data["user"]
attendee = people.Attendee.objects.get(id=attendee_id) attendee = people.Attendee.objects.get(id=attendee_id)