Ticket #16145: 16145.patch

File 16145.patch, 823 bytes (added by Aymeric Augustin, 13 years ago)
  • docs/topics/db/managers.txt

     
    371371Set ``use_for_related_fields`` when you define the class
    372372~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    373373
    374 The ``use_for_related_fields`` attribute must be set on the manager *class*,
    375 object not on an *instance* of the class. The earlier example shows the
    376 correct way to set it, whereas the following will not work::
     374The ``use_for_related_fields`` attribute must be set on the manager *class*, not
     375on an *instance* of the class. The earlier example shows the correct way to set
     376it, whereas the following will not work::
    377377
    378378    # BAD: Incorrect code
    379379    class MyManager(models.Manager):
Back to Top