Discussion:
[Django] #25201: Allow use_for_related_fields via as_manager()
Django
2015-07-31 01:45:22 UTC
Permalink
#25201: Allow use_for_related_fields via as_manager()
----------------------------------------------+--------------------
Reporter: litchfield | Owner: nobody
Type: New feature | Status: new
Component: Database layer (models, ORM) | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 1 | UI/UX: 0
----------------------------------------------+--------------------
The as_manager() method allows easy creation of chain-able managers. One
of the most common use cases for these is with related fields. However,
as_manager() doesn't currently allow use_for_related_fields to be
specified. This patch proposes it could be set simply by way of an
attribute on the QuerySet class, in the same way it currently does for
Manager classes.

--
Ticket URL: <https://code.djangoproject.com/ticket/25201>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/053.dc4bf5053849a160b2c82078ad4566b5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...