select_related does not descend ForeignKey fields which can be null
|Reported by:||fas||Owned by:||fas|
|Component:||Database layer (models, ORM)||Version:||1.0|
|Severity:||Keywords:||select_related, null, foreignkey, ignored|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
ForeignKey fields which have the "null" property set to true are ignored by select_related() even though fill_related_selections() is prepared to use a left join for such fields and would deliver correct results.