mirror of
https://github.com/django/django.git
synced 2025-03-31 19:46:42 +00:00
Merge pull request #99 from danielroseman/master
Docs: "Form in a view" example doesn't use RequestContext
This commit is contained in:
commit
6799ffad9a
@ -99,7 +99,7 @@ The standard pattern for processing a form in a view looks like this:
|
|||||||
else:
|
else:
|
||||||
form = ContactForm() # An unbound form
|
form = ContactForm() # An unbound form
|
||||||
|
|
||||||
return render_to_response('contact.html', {
|
return render(request, 'contact.html', {
|
||||||
'form': form,
|
'form': form,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user