From 92fae6d8cd7901e74befcda219d509ca8558bd6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Thu, 21 Feb 2013 10:48:52 +0100 Subject: [PATCH] removed unnecessary collection lookup --- mediagoblin/decorators.py | 4 ---- 1 file changed, 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'] }) -- 2.25.1