#27303: Allow FilterSpecs to return Q-likes
-------------------------------+--------------------------------------
Reporter: Yeago | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filterspec | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by Tim Graham):
Sorry, I had some trouble understanding the issue -- I guess the sample I
was looking at didn't demonstrate the issue at first.
I'm not sure about the best way to resolve it. The
[https://github.com/django/django/pull/7345 proposed]
`ModelAdmin.filter_q_behavior` attribute seems to expose internals of
Django's ORM too much. Maybe trying to frame the solution as allowing a
way for the admin user or the `ModelAdmin` author to choose between AND
and OR in the filter criteria as proposed in #18736 would be simpler for
everyone to understand.
Tests might be in `tests/admin_filters/` or some of the other `admin_*`
test packages.
--
Ticket URL: <https://code.djangoproject.com/ticket/27303#comment:17>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.138b1e8b0456fabe6c775a2adf5bd526%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.