Commit 63412262 authored by Tim Graham's avatar Tim Graham
Browse files

Fixed #24175 -- Updated docstring convention.

parent 18f3e79b
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -40,21 +40,13 @@ Python style

      from django.views.generic.base import View

* In docstrings, use "action words" such as::

      def foo():
          """
          Calculates something and returns the result.
          """
          pass

  Here's an example of what not to do::
* In docstrings, follow :pep:`257`. For example::

      def foo():
          """
          Calculate something and return the result.
          """
          pass
          ...

Template style
--------------