diff gpp/downloads/models.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 7b6540b185d9
children 9c18250972d5
line wrap: on
line diff
--- a/gpp/downloads/models.py	Sun Apr 19 21:01:15 2009 +0000
+++ b/gpp/downloads/models.py	Sun Apr 19 21:16:59 2009 +0000
@@ -69,7 +69,7 @@
 
     @models.permalink
     def get_absolute_url(self):
-        return ('downloads-download', [str(self.id)])
+        return ('downloads-details', [str(self.id)])
 
     def save(self, force_insert=False, force_update=False):
         html = render_to_string('downloads/markdown.html', {'data': self.description})