Commits

Ben  committed 8b70a5d

Remove wrong url method from Palodgeit.models.Paste

  • Participants
  • Parent commits a985699
  • Branches lodgeit

Comments (0)

Files changed (2)

File lodgeit/controllers/pastes.py

                 db.session.add(paste)
                 db.session.commit()
                 local.request.session['language'] = language
-                return redirect(paste.url)
+                return redirect(local.request.get_url('pastes/show_paste', identifier=paste.paste_id))
 
         else:
             parent_id = req.values.get('reply_to')

File lodgeit/models.py

             return self.private_id
         return str(self.paste_id)
 
-    @property
-    def url(self):
-        """The URL to the paste."""
-        return '/show/%s/' % self.identifier
-
     def compare_to(self, other, context_lines=4, template=False):
         """Compare the paste with another paste."""
         udiff = u'\n'.join(difflib.unified_diff(