LayerMapping - entries skipped when ForeignKey field has related model missing and null = True
|Reported by:||Glen Robertson||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
The LayerMapping utility will skip entries for a model that has missing foreign key entries when the foreign key field has null=True in it's configuration.
It would be better to add these entries and set the model's foreign key value to None when the foreign key doesn't exist.
Change History (12)
comment:1 Changed 5 years ago by
|Summary:||LayerMapping - entry skipped when ForeignKey field has related model missing and null = True → LayerMapping - entries skipped when ForeignKey field has related model missing and null = True|
comment:2 Changed 5 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Unreviewed → Accepted|
|Type:||Uncategorized → Bug|
comment:4 Changed 5 years ago by
|Owner:||changed from Aymeric Augustin to nobody|
|Patch needs improvement:||unset|