Ticket #16145: 16145.patch
File 16145.patch, 823 bytes (added by , 13 years ago) |
---|
-
docs/topics/db/managers.txt
371 371 Set ``use_for_related_fields`` when you define the class 372 372 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 373 373 374 The ``use_for_related_fields`` attribute must be set on the manager *class*, 375 o bject not on an *instance* of the class. The earlier example shows the376 correct way to setit, whereas the following will not work::374 The ``use_for_related_fields`` attribute must be set on the manager *class*, not 375 on an *instance* of the class. The earlier example shows the correct way to set 376 it, whereas the following will not work:: 377 377 378 378 # BAD: Incorrect code 379 379 class MyManager(models.Manager):