aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2016-01-07 11:07:38 -0800
committerChristopher Allan Webber <cwebber@dustycloud.org>2016-01-07 11:07:38 -0800
commit9bc8c8709dc7f7ff37efdcef2a5ce492985d7f95 (patch)
tree097a275a80998a183871b6b5bc0300e2d8f1c9f7
parent43cf0a68f2244e0c56cf2da0340363163bbaae53 (diff)
downloadmediagoblin-9bc8c8709dc7f7ff37efdcef2a5ce492985d7f95.tar.lz
mediagoblin-9bc8c8709dc7f7ff37efdcef2a5ce492985d7f95.tar.xz
mediagoblin-9bc8c8709dc7f7ff37efdcef2a5ce492985d7f95.zip
Add a comment when we do / don't add collections dropdown
Otherwise that "del submit_form.collection" might be confusing :)
-rw-r--r--mediagoblin/submit/views.py2
1 files changed, 2 insertions, 0 deletions
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: