Thanks Simon, I use `OuterRef` when building a queryset so` Subquery` is
necessary for me.
For myself, I solved the problem as follows:
...
uuid__in=Subquery(queryset, output_field=models.IntegerField())
...
--
You received this message because you are subscribed to the Google Groups
"Django
Hello there,
This is a bug, there's an open Django issue for it [0].
I suggest you don't rely on Subquery for simple pk lookups. Django supported
direct query passing for as long as I can remember.
See https://groups.google.com/d/msg/django-users/aq7mL9Opd-s/z2LZ1jXlCAAJ
for more details.
Chee
Guys help me figure it out.
I use an example from the documentation
https://docs.djangoproject.com/en/1.11/ref/models/expressions/#limiting-a-subquery-to-a-single-column
>>> from datetime import timedelta
>>> from django.utils import timezone
>>> one_day_ago = timezone.now() - timedelta(days=1)
>
3 matches
Mail list logo