From: Aaron Williamson Date: Thu, 30 Aug 2012 21:42:04 +0000 (-0400) Subject: Reference collection creator through already-existing collection_item's foreign key X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cdb35b9717756c13cbf89409b2d1bb125d283784;p=mediagoblin.git Reference collection creator through already-existing collection_item's foreign key --- diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index ee366c10..187bba96 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -376,7 +376,7 @@ def collection_item_confirm_remove(request, collection_item): collection=collection.slug) if ((request.user.is_admin and - request.user._id != collection.creator)): + request.user._id != collection_item.in_collection.creator)): messages.add_message( request, messages.WARNING, _("You are about to delete an item from another user's collection. "