Commit f5785632 authored by Timo Graham's avatar Timo Graham
Browse files

[1.3.X] Fixed #16145 - typo in manager docs; thanks leereilly.

Backport of r16324 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 0e90de0a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -371,9 +371,9 @@ in ``get_query_set()`` is not appropriate for use as an automatic manager.
Set ``use_for_related_fields`` when you define the class
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The ``use_for_related_fields`` attribute must be set on the manager *class*,
object not on an *instance* of the class. The earlier example shows the
correct way to set it, whereas the following will not work::
The ``use_for_related_fields`` attribute must be set on the manager *class*, not
on an *instance* of the class. The earlier example shows the correct way to set
it, whereas the following will not work::

    # BAD: Incorrect code
    class MyManager(models.Manager):