#10348: contrib.admin: select_related overwritten by
django.contrib.admin.views.ChangeList.get_query_set
-------------------------------------------+--------------------------------
Reporter: erny | Owner: nobody
Status: new | Milestone: 1.1
Component: django.contrib.admin | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by mrts):
#10742 was a duplicate and proposed to use three-valued logic, leaving
existing behaviour as-is and adding `None`:
* `True` -- always call `select_related()`,
* `False` (the default) -- call `select_related()` if any of the fields
in list_display is a foreign key,
* `None` (added) -- leave the queryset alone.
It has a working patch.
--
Ticket URL: <http://code.djangoproject.com/ticket/10348#comment:5>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---