How does use_for_related_fields work in Django?
|May 20, 2011||Posted by forumadmin under TechQns||
I’m unable to grasp that from the docs. It’s totally unclear to me, more specifically:
- Is it a global setting? So if I specify this attribute it on one of the model managers, will it be used globally by all the model classes?
- If it’s not a global setting then which relationships exactly will be affected?
- Is it possible to have one model manager for one relationship and another one for another relationship with the same model?
Most of all I would appreciate any good minimal example usages as the documentation lacks those afaik. Thanks.
|Asked By – julkiewicz||Read Answers|