on submission, use inline error messaging instead of message queue
authorCaleb Forbes Davis V <caldavis@gmail.com>
Tue, 26 Jul 2011 04:48:51 +0000 (23:48 -0500)
committerCaleb Forbes Davis V <caldavis@gmail.com>
Tue, 26 Jul 2011 05:00:50 +0000 (00:00 -0500)
- the function that converts the user's tag string into a list of
  tags now accepts a string, but the media submit view was still
  submitting the request object, like we were going to add any
  errors to the session. Now the submit view passes the tag string

mediagoblin/submit/views.py

index bda77b1d8a5a3846512c74a1525dd1e95a5058a8..edde44004cdc5697782bd7d26e688ebe388f8c95 100644 (file)
@@ -62,7 +62,7 @@ def submit_start(request):
             entry['uploader'] = request.user['_id']
 
             # Process the user's folksonomy "tags"
-            entry['tags'] = convert_to_tag_list(request)
+            entry['tags'] = convert_to_tag_list(request.POST.get('tags'))
 
             # Save, just so we can get the entry id for the sake of using
             # it to generate the file path