From: András Veres-Szentkirályi Date: Thu, 21 Feb 2013 09:48:52 +0000 (+0100) Subject: removed unnecessary collection lookup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=92fae6d8cd7901e74befcda219d509ca8558bd6f;p=mediagoblin.git removed unnecessary collection lookup --- 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'] })