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 .
On Mon, 21 Dec 2020 at 05:21, Mariusz Felisiak <[email protected]> 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 [email protected]. > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM2b6-sxMdCMkncivfHEi%3DUPX4ZDXsKSvHSB5q88GiQOsQ%40mail.gmail.com.
