equal
deleted
inserted
replaced
28 {'form': ParticipantForm(), 'value': True}) |
28 {'form': ParticipantForm(), 'value': True}) |
29 |
29 |
30 def submission(request, template_name='submission.html'): |
30 def submission(request, template_name='submission.html'): |
31 """View to return the submitted videos |
31 """View to return the submitted videos |
32 """ |
32 """ |
|
33 context_participants = [] |
|
34 |
|
35 participants = Participant.objects.all() |
|
36 for participant in participants: |
|
37 context_participants.append({ |
|
38 'participant': participant, |
|
39 'file_name': str(participant.filename).split('/')[-1], |
|
40 }) |
|
41 |
33 context = { |
42 context = { |
34 'participants': Participant.objects.all() |
43 'participants': context_participants, |
35 } |
44 } |
36 |
45 |
37 return render_to_response(template_name, context) |
46 return render_to_response(template_name, context) |