Added redirect to add view to be able to add an image from a different URL/template without landing on the add template afterwards.

This commit is contained in:
Jannis Leidel 2010-03-21 14:22:43 +01:00
parent f5a252406f
commit 55f29b62be

View file

@ -90,6 +90,7 @@ def add(request, extra_context=None, next_override=None,
message=_("Successfully uploaded a new avatar."))
if notification:
_notification_updated(request, avatar)
return HttpResponseRedirect(next_override or _get_next(request))
return render_to_response(
'avatar/add.html',
extra_context,