1👍
✅
The question is are you doing:
Child.objects.filter(parent__in=Parent.objects.filter(...))
or
Child.objects.filter(parent_id__in=Parent.objects.filter(...))
The first version will work, the second version will give you the “invalid literal for int() with base 10” error.
Source:stackexchange.com