Filter Nones from query
Closed this issue · 3 comments
adamchainz commented
Currently nullable FK's cause id__in=[None, 1, None]
style queries. Good to filter them out before sending to DB to reduce SQL noise.
tolomea commented
Agree
adamchainz commented
This might actually be one for django as the prefetch is done with a plain Prefetch('field_name')
adamchainz commented
Also a Django ticket https://code.djangoproject.com/ticket/31667#ticket