diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-01-07 11:07:38 -0800 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-01-07 11:07:38 -0800 |
commit | 9bc8c8709dc7f7ff37efdcef2a5ce492985d7f95 (patch) | |
tree | 097a275a80998a183871b6b5bc0300e2d8f1c9f7 | |
parent | 43cf0a68f2244e0c56cf2da0340363163bbaae53 (diff) | |
download | mediagoblin-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.py | 2 |
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: |