upload/views.py
changeset 20 272dced1685b
parent 18 07408d1ced76
--- a/upload/views.py	Thu Sep 03 18:52:01 2009 +0530
+++ b/upload/views.py	Thu Sep 03 19:07:30 2009 +0530
@@ -30,8 +30,17 @@
 def submission(request, template_name='submission.html'):
     """View to return the submitted videos
     """
+    context_participants = []
+
+    participants = Participant.objects.all()
+    for participant in participants:
+      context_participants.append({
+          'participant': participant,
+          'file_name': str(participant.filename).split('/')[-1],
+          })
+      
     context = {
-        'participants': Participant.objects.all()
+        'participants': context_participants,
         }
 
     return render_to_response(template_name, context)