Kaydet (Commit) 5c59e43a authored tarafından Daniel Roseman's avatar Daniel Roseman

Use render shortcut in form example.

üst b4b89778
......@@ -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,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment