equal
deleted
inserted
replaced
22 def view_registrants(request, template_name='registrants.html'): |
22 def view_registrants(request, template_name='registrants.html'): |
23 """ |
23 """ |
24 View to return list of registered participants |
24 View to return list of registered participants |
25 """ |
25 """ |
26 ##wow what a one liner |
26 ##wow what a one liner |
27 poc = dict([line.strip().split('|') for line in open('upload/poc')]) |
27 poc = dict([line.strip().split('|') for line in open('/home/hg/repos/ws_reg/upload/poc')]) |
28 if not request.user.is_authenticated(): |
28 if not request.user.is_authenticated(): |
29 return HttpResponse("You can't view these details.") |
29 return HttpResponse("You can't view these details.") |
30 context_registrants = [] |
30 context_registrants = [] |
31 |
31 |
32 registrations = Participant.objects.all() |
32 registrations = Participant.objects.all() |