mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
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:
parent
f5a252406f
commit
55f29b62be
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue