Feature #409 - Submitting an image should redirect you back to user's
page w/ a message * Successful submission redirects to the logged in user's page (your own, presumably). * "Woohoo! Submitted!" is launched into the tube of session messages to appear on next pageload. If you're not aborting in the window of 210ms it takes for the client to respond to the 302 and load the logged in user's/your page that is, YMMV.
This commit is contained in:
parent
0e3400357d
commit
4dc7444119
@ -24,6 +24,7 @@ from mediagoblin.util import (
|
||||
from mediagoblin.decorators import require_active_login
|
||||
from mediagoblin.submit import forms as submit_forms, security
|
||||
from mediagoblin.process_media import process_media_initial
|
||||
from mediagoblin.messages import add_message, SUCCESS
|
||||
|
||||
|
||||
@require_active_login
|
||||
@ -85,7 +86,10 @@ def submit_start(request):
|
||||
# queue it for processing
|
||||
process_media_initial.delay(unicode(entry['_id']))
|
||||
|
||||
return redirect(request, "mediagoblin.submit.success")
|
||||
add_message(request, SUCCESS, 'Woohoo! Submitted!')
|
||||
|
||||
return redirect(request, "mediagoblin.user_pages.user_home",
|
||||
user = request.user['username'])
|
||||
|
||||
return render_to_response(
|
||||
request,
|
||||
|
Loading…
x
Reference in New Issue
Block a user