A couple questions came to mind if we're going to document this as
"official behavior":
1. This also appears to be true for filter. Would the same clarification
be appropriate there?
2. I don't see any tests validating the behavior for either Q or filter,
should there be?
Ken
On 12/21/2020 9:45 AM, Adam Johnson wrote:
I saw that Q() with no arguments is not documented, so I've made a PR
to add a sentence covering it:
https://github.com/django/django/pull/13798
<https://github.com/django/django/pull/13798> .
On Mon, 21 Dec 2020 at 05:21, Mariusz Felisiak
<felisiak.mari...@gmail.com <mailto:felisiak.mari...@gmail.com>> wrote:
complete_query = ~Q(pk__in=[]) # this should be something like
Q.ident()
You can use `complete_query = Q()`. Also, this mailing list is for
discussing the development of Django itself, not for support using
Django.
Best,
Mariusz
--
You received this message because you are subscribed to the Google
Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to django-developers+unsubscr...@googlegroups.com
<mailto:django-developers+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/676b8f7e-073d-4b69-9b70-b7824c31d3f3n%40googlegroups.com
<https://groups.google.com/d/msgid/django-developers/676b8f7e-073d-4b69-9b70-b7824c31d3f3n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Adam
--
You received this message because you are subscribed to the Google
Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-developers+unsubscr...@googlegroups.com
<mailto:django-developers+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/CAMyDDM2b6-sxMdCMkncivfHEi%3DUPX4ZDXsKSvHSB5q88GiQOsQ%40mail.gmail.com
<https://groups.google.com/d/msgid/django-developers/CAMyDDM2b6-sxMdCMkncivfHEi%3DUPX4ZDXsKSvHSB5q88GiQOsQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "Django
developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/b4c68599-1ae8-c657-288b-522c61f9bea0%40comcast.net.