--- a/project/kiwipycon/talk/views.py Wed Dec 09 22:29:44 2009 +0530
+++ b/project/kiwipycon/talk/views.py Wed Dec 09 22:57:33 2009 +0530
@@ -182,13 +182,11 @@
'login_form' : login_form
}))
-@login_required
-def list_talks(request, id, template_name='talk/list-talks.html'):
+def list_talks(request, template_name='talk/list-all-talks.html'):
'''List all the tasks submitted by a user.
'''
- speaker = User.objects.get(pk=id)
- talks = Talk.objects.filter(speaker=speaker)
+ talks = Talk.objects.filter(approved=True)
return render_to_response(template_name, RequestContext(request, {
'talk_list': talks,