removed unnecessary collection lookup
authorAndrás Veres-Szentkirályi <vsza@vsza.hu>
Thu, 21 Feb 2013 09:48:52 +0000 (10:48 +0100)
committerJoar Wandborg <joar@wandborg.se>
Fri, 22 Feb 2013 21:24:29 +0000 (22:24 +0100)
mediagoblin/decorators.py

index 092356144931b1121d94e2ce380cf3dcd1af9125..42406b7dc4475a5d30d543d5d9154b5dee5c4b3c 100644 (file)
@@ -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'] })