django__django-16938
Serialization of m2m relation fails with custom manager using select_related
Verdict: the fix is stated in the issue (Tier A).
return getattr(obj, field.name).only("pk").iterator() 82 return getattr(obj, field.name).select_related().only("pk").iterator()
The text states the fix: “return getattr(obj, field.name).only("pk").iterator() 82 return getattr(obj, field.name).select_related().only("pk").iterator()”
All SWE-bench Verified tasks · more django/django tasks · How the check works