--- a/project/kiwipycon/talk/views.py Wed Nov 18 15:52:42 2009 +0530
+++ b/project/kiwipycon/talk/views.py Mon Nov 23 12:01:22 2009 +0530
@@ -182,3 +182,14 @@
'login_form' : login_form
}))
+@login_required
+def list_talks(request, id, template_name='talk/list-talks.html'):
+ '''List all the tasks submitted by a user.
+ '''
+
+ speaker = User.objects.get(pk=id)
+ talks = Talk.objects.filter(speaker=speaker)
+
+ return render_to_response(template_name, RequestContext(request, {
+ 'talk_list': talks,
+ }))