]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/models.py
bundles: Remove separate public bundle views
[patchwork] / apps / patchwork / models.py
index 86a5266cff2d2177f682c57e6fcea8897b616b66..9129aabddbc7dae5e57bd03df03f3f0d9832356a 100644 (file)
@@ -363,12 +363,19 @@ class Bundle(models.Model):
             return None
         site = Site.objects.get_current()
         return 'http://%s%s' % (site.domain,
-                reverse('patchwork.views.bundle.public',
+                reverse('patchwork.views.bundle.bundle',
                         kwargs = {
                                 'username': self.owner.username,
                                 'bundlename': self.name
                         }))
 
+    @models.permalink
+    def get_absolute_url(self):
+        return ('patchwork.views.bundle.bundle', (), {
+                                'username': self.owner.username,
+                                'bundlename': self.name,
+                            })
+
     def mbox(self):
         return '\n'.join([p.mbox().as_string(True)
                         for p in self.ordered_patches()])