Skip to content

Commit

Permalink
Fixed django#18614 -- Added missing imports in code samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed Jul 25, 2012
1 parent a875f61 commit 7d06f97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/topics/forms/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ The standard pattern for processing a form in a view looks like this:

.. code-block:: python

from django.shortcuts import render
from django.http import HttpResponseRedirect

def contact(request):
if request.method == 'POST': # If the form has been submitted...
form = ContactForm(request.POST) # A form bound to the POST data
Expand Down

0 comments on commit 7d06f97

Please sign in to comment.