From 9bc8c8709dc7f7ff37efdcef2a5ce492985d7f95 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 7 Jan 2016 11:07:38 -0800 Subject: [PATCH] Add a comment when we do / don't add collections dropdown Otherwise that "del submit_form.collection" might be confusing :) --- mediagoblin/submit/views.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.11.4.GIT