#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'm still not understanding. After selecting "This month" and
"person 2" in the admin filters for the info page, I see the query:
{{{
SELECT "app_info"."id", "app_info"."name"
FROM "app_info"
INNER JOIN "app_contact" ON ("app_info"."id" = "app_contact"."info_id")
INNER JOIN "app_contact" T3 ON ("app_info"."id" = T3."info_id")
WHERE ("app_contact"."date" < 2016-11-01 00:00:00 AND "app_contact"."date"
>= 2016-10-01 00:00:00 AND T3."person_id" = 2)
}}}
It seems to give the expected results of infos that have contacts with
person=2 AND date=this month. Please let me know my mistake.
--
Ticket URL: <https://code.djangoproject.com/ticket/27303#comment:5>
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.3602fd1974bfc22f3dc6e5e9b5e9652f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.