There was an error while loading. Please reload this page.
1 parent e0fce87 commit 19a810bCopy full SHA for 19a810b
docs/topics/forms/modelforms.txt
@@ -877,7 +877,8 @@ of a model. Here's how you can do that::
877
formset = BookInlineFormSet(request.POST, request.FILES, instance=author)
878
if formset.is_valid():
879
formset.save()
880
- # Do something.
+ # Do something. Should generally end with a redirect. For example:
881
+ return HttpResponseRedirect(author.get_absolute_url())
882
else:
883
formset = BookInlineFormSet(instance=author)
884
return render_to_response("manage_books.html", {
0 commit comments