Commits

Anonymous committed 2309ba4

Docstring improvement for contact_form view

Comments (0)

Files changed (1)

     which is handled by the form class), pass the ``template_name``
     keyword argument; if not supplied, this will default to
     ``contact/contact_form.html``.
-
+    
     To specify a URL to redirect to after a successfully-sent message,
     pass the ``success_url`` keyword argument; if not supplied, this
     will default to ``/contact/sent/``.
     To allow only registered users to use the form, pass a ``True``
     value for the ``login_required`` keyword argument.
     
+    Template::
+    
+        Passed in the ``template_name`` argument.
+        
+    Context::
+    
+        form
+            The form instance.
+    
     """
     if login_required and not request.user.is_authenticated():
         from django.contrib.auth.views import redirect_to_login
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.