From: Christopher Allan Webber Date: Thu, 7 Jan 2016 19:07:38 +0000 (-0800) Subject: Add a comment when we do / don't add collections dropdown X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9bc8c8709dc7f7ff37efdcef2a5ce492985d7f95;p=mediagoblin.git Add a comment when we do / don't add collections dropdown Otherwise that "del submit_form.collection" might be confusing :) --- diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py index c2eecdb6..eb11dfe0 100644 --- a/mediagoblin/submit/views.py +++ b/mediagoblin/submit/views.py @@ -56,6 +56,8 @@ def submit_start(request): type=Collection.USER_DEFINED_TYPE ).order_by(Collection.title) + # Only show the Collections dropdown if the user has some + # collections set up if users_collections.count() > 0: submit_form.collection.query = users_collections else: