diff gpp/downloads/views.py @ 23:a5f27f25fa52

Added a latest_downloads template tag. Made the comments view the details view for a download. Changed get_absolute_url to point to this new view.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 21:16:59 +0000
parents dbd703f7d63a
children 62eb9cbbcffc
line wrap: on
line diff
--- a/gpp/downloads/views.py	Sun Apr 19 21:01:15 2009 +0000
+++ b/gpp/downloads/views.py	Sun Apr 19 21:16:59 2009 +0000
@@ -129,11 +129,11 @@
 #######################################################################
 
 @login_required
-def comments(request, id):
+def details(request, id):
     download = Download.public_objects.get(pk=id)
     if download is None:
         raise Http404
-    return render_to_response('downloads/download_comments.html', {
+    return render_to_response('downloads/download_detail.html', {
         'download' : download,
         }, 
         context_instance = RequestContext(request))