Django Manager Chaining

前端 未结 4 2149
独厮守ぢ
独厮守ぢ 2021-01-30 09:19

I was wondering if it was possible (and, if so, how) to chain together multiple managers to produce a query set that is affected by both of the individual managers. I\'ll expla

4条回答
  •  無奈伤痛
    2021-01-30 09:46

    Another option worth considering is the PassThroughManager:

    https://django-model-utils.readthedocs.org/en/latest/managers.html#passthroughmanager

提交回复
热议问题