Commit 7d06f975 authored by Florian Apolloner's avatar Florian Apolloner
Browse files

Fixed #18614 -- Added missing imports in code samples.

parent a875f612
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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