mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-04-13 00:00:57 +00:00
Set use_for_related_fields=True on QueryManager.
This commit is contained in:
parent
ec1870c98a
commit
05f1dc97b3
1 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,8 @@ class InheritanceCastMixin(object):
|
|||
|
||||
|
||||
class QueryManager(models.Manager):
|
||||
use_for_related_fields = True
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
if args:
|
||||
self._q = args[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue