Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #14917 -- Hinted that view should redirect after form post success

  • Loading branch information...
commit 19a810b18cacea12f201b5a235d1af9218d9c2e9 1 parent e0fce87
@claudep claudep authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  docs/topics/forms/modelforms.txt
3  docs/topics/forms/modelforms.txt
@@ -877,7 +877,8 @@ of a model. Here's how you can do that::
formset = BookInlineFormSet(request.POST, request.FILES, instance=author)
if formset.is_valid():
- # Do something.
+ # Do something. Should generally end with a redirect. For example:
+ return HttpResponseRedirect(author.get_absolute_url())
formset = BookInlineFormSet(instance=author)
return render_to_response("manage_books.html", {
Please sign in to comment.
Something went wrong with that request. Please try again.