Fixes individual attendee view, which had disappeared.
This commit is contained in:
parent
c76c0f6f4b
commit
ea07469634
2 changed files with 7 additions and 2 deletions
|
@ -293,6 +293,9 @@ class ReportViewRequestData(object):
|
||||||
self.section = request.GET.get("section")
|
self.section = request.GET.get("section")
|
||||||
self.section = int(self.section) if self.section else None
|
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 come from calling the inner view
|
||||||
reports = report_view.inner_view(request, self.form, *a, **k)
|
reports = report_view.inner_view(request, self.form, *a, **k)
|
||||||
|
|
||||||
|
|
|
@ -408,11 +408,13 @@ def attendee(request, form, user_id=None):
|
||||||
''' Returns a list of all manifested attendees if no attendee is specified,
|
''' Returns a list of all manifested attendees if no attendee is specified,
|
||||||
else displays the attendee manifest. '''
|
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:
|
if user_id is None:
|
||||||
return attendee_list(request)
|
return attendee_list(request)
|
||||||
|
|
||||||
if form.cleaned_data["user"] is not None:
|
print user_id
|
||||||
user_id = form.cleaned_data["user"]
|
|
||||||
|
|
||||||
attendee = people.Attendee.objects.get(user__id=user_id)
|
attendee = people.Attendee.objects.get(user__id=user_id)
|
||||||
name = attendee.attendeeprofilebase.attendee_name()
|
name = attendee.attendeeprofilebase.attendee_name()
|
||||||
|
|
Loading…
Reference in a new issue