You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/01/16 18:37:00 UTC
[2/3] git commit: [#7065] remove unindexed query to find slug in a
different thread
[#7065] remove unindexed query to find slug in a different thread
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/8894ce78
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/8894ce78
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/8894ce78
Branch: refs/heads/db/7065
Commit: 8894ce780f852dc2100cd19a88ce004104602801
Parents: 6e5f7c6
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Thu Jan 16 16:48:41 2014 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Thu Jan 16 17:36:27 2014 +0000
----------------------------------------------------------------------
Allura/allura/controllers/discuss.py | 3 ---
1 file changed, 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/8894ce78/Allura/allura/controllers/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/discuss.py b/Allura/allura/controllers/discuss.py
index 88ec552..aefd472 100644
--- a/Allura/allura/controllers/discuss.py
+++ b/Allura/allura/controllers/discuss.py
@@ -278,9 +278,6 @@ class PostController(BaseController):
slug=self._post_slug, thread_id=self.thread._id)
if post:
return post
- post = self.M.Post.query.get(slug=self._post_slug)
- if post:
- return post
else:
redirect('..')