Related objects reference with custom manager

丶灬走出姿态 提交于 2019-12-10 17:19:30

问题


I want to get the related object references and I want to use a custom manager.

Is there something outside? How I can use a custom manager to get these objects?

 b.entry_set.all()

E.g

b.custom_manager.entry_set.all()
b.entry_custom_manager_set.all()

回答1:


It looks like a ticket is still open for this feature https://code.djangoproject.com/ticket/3871



来源:https://stackoverflow.com/questions/16301532/related-objects-reference-with-custom-manager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!