No warning should be raised when defining an abstract model with no app_label
|Reported by:||Simon Charette||Owned by:||Aymeric Augustin|
|Component:||Database layer (models, ORM)||Version:||master|
|Cc:||Aymeric Augustin||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Since those models are never registered and meant to be used by different apps it doesn't make much sense to raise a warning in this case.
I think this case was just overlooked when Aymeric refactored app-loading.
Attaching a patch fixing the issue and removing an extra space between
INSTALLED_APPS in the warning message.
Change History (22)
Changed 3 years ago by
comment:1 Changed 3 years ago by
|Owner:||changed from nobody to Aymeric Augustin|
|Status:||new → assigned|