projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5e2c5e
)
removed unnecessary collection lookup
author
András Veres-Szentkirályi
<vsza@vsza.hu>
Thu, 21 Feb 2013 09:48:52 +0000
(10:48 +0100)
committer
Joar Wandborg
<joar@wandborg.se>
Fri, 22 Feb 2013 21:24:29 +0000
(22:24 +0100)
mediagoblin/decorators.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/decorators.py
b/mediagoblin/decorators.py
index 092356144931b1121d94e2ce380cf3dcd1af9125..42406b7dc4475a5d30d543d5d9154b5dee5c4b3c 100644
(file)
--- 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'] })