mongodb-labs / django-mongodb

MongoDB Backend for Django
Apache License 2.0
16 stars 7 forks source link

QuerySet.filter() in lookup doesn't return any results when subquery returns ObjectId #161

Open timgraham opened 1 month ago

timgraham commented 1 month ago

Example from queries.tests.RelatedLookupTypeTests.test_values_queryset_lookup:

ObjectB.objects.filter(
    objecta__in=ObjectB.objects.values_list("num")
)