Fixes individual attendee view, which had disappeared.

This commit is contained in:
Christopher Neugebauer 2016-12-07 10:18:48 +11:00
parent c76c0f6f4b
commit ea07469634
2 changed files with 7 additions and 2 deletions

View file

@ -293,6 +293,9 @@ class ReportViewRequestData(object):
self.section = request.GET.get("section")
self.section = int(self.section) if self.section else None
if self.content_type is None:
self.content_type = "text/html"
# Reports come from calling the inner view
reports = report_view.inner_view(request, self.form, *a, **k)

View file

@ -408,11 +408,13 @@ def attendee(request, form, user_id=None):
''' Returns a list of all manifested attendees if no attendee is specified,
else displays the attendee manifest. '''
if user_id is None and form.cleaned_data["user"] is not None:
user_id = form.cleaned_data["user"]
if user_id is None:
return attendee_list(request)
if form.cleaned_data["user"] is not None:
user_id = form.cleaned_data["user"]
print user_id
attendee = people.Attendee.objects.get(user__id=user_id)
name = attendee.attendeeprofilebase.attendee_name()