aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/decorators.py
diff options
context:
space:
mode:
authorAndrás Veres-Szentkirályi <vsza@vsza.hu>2013-02-21 10:48:52 +0100
committerJoar Wandborg <joar@wandborg.se>2013-02-22 22:24:29 +0100
commit92fae6d8cd7901e74befcda219d509ca8558bd6f (patch)
tree0b4c247dad4fd3bd9248c65cb6d73c69be93a638 /mediagoblin/decorators.py
parente5e2c5e7aa2c882ea02ca5eaa63a1e53d15946e8 (diff)
downloadmediagoblin-92fae6d8cd7901e74befcda219d509ca8558bd6f.tar.lz
mediagoblin-92fae6d8cd7901e74befcda219d509ca8558bd6f.tar.xz
mediagoblin-92fae6d8cd7901e74befcda219d509ca8558bd6f.zip
removed unnecessary collection lookup
Diffstat (limited to 'mediagoblin/decorators.py')
-rw-r--r--mediagoblin/decorators.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/mediagoblin/decorators.py b/mediagoblin/decorators.py
index 09235614..42406b7d 100644
--- a/mediagoblin/decorators.py
+++ b/mediagoblin/decorators.py
@@ -187,10 +187,6 @@ def get_user_collection_item(controller):
if not user:
return render_404(request)
- collection = request.db.Collection.find_one(
- {'slug': request.matchdict['collection'],
- 'creator': user.id})
-
collection_item = request.db.CollectionItem.find_one(
{'id': request.matchdict['collection_item'] })