mirror of
https://github.com/django/django.git
synced 2025-11-01 04:17:59 +00:00
Use render shortcut in form example.
This commit is contained in:
parent
b4b8977814
commit
5c59e43aef
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ The standard pattern for processing a form in a view looks like this:
|
|||
else:
|
||||
form = ContactForm() # An unbound form
|
||||
|
||||
return render_to_response('contact.html', {
|
||||
return render(request, 'contact.html', {
|
||||
'form': form,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue