Add a comment when we do / don't add collections dropdown
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 7 Jan 2016 19:07:38 +0000 (11:07 -0800)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 7 Jan 2016 19:07:38 +0000 (11:07 -0800)
Otherwise that "del submit_form.collection" might be confusing :)

mediagoblin/submit/views.py

index c2eecdb63d052587d96a0cc13a72dbd8a0fbe9a6..eb11dfe0268c50da968d89f9f436f276c6af2f97 100644 (file)
@@ -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: