Changeset - ea07469634ee
[Not reviewed]
0 2 0
Christopher Neugebauer - 8 years ago 2016-12-06 23:18:48
chrisjrn@gmail.com
Fixes individual attendee view, which had disappeared.
2 files changed with 7 insertions and 2 deletions:
0 comments (0 inline, 0 general)
registrasion/reporting/reports.py
Show inline comments
...
 
@@ -290,12 +290,15 @@ class ReportViewRequestData(object):
 

	
 
        # Content type and section come from request.GET
 
        self.content_type = request.GET.get("content_type")
 
        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)
 

	
 
        # Normalise to a list
 
        if isinstance(reports, Report):
 
            reports = [reports]
registrasion/reporting/views.py
Show inline comments
...
 
@@ -405,17 +405,19 @@ class AttendeeListReport(ListReport):
 

	
 
@report_view("Attendee", form_type=forms.UserIdForm)
 
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()
 

	
 
    reports = []
 

	
0 comments (0 inline, 0 general)