django1/django/apps
Simon Charette 7e6a2e3b45 [4.0.x] Fixed #33366 -- Fixed case handling with swappable setting detection in migrations autodetector.
The migration framework uniquely identifies models by case insensitive
labels composed of their app label and model names and so does the app
registry in most of its methods (e.g. AppConfig.get_model) but it
wasn't the case for get_swappable_settings_name() until this change.

This likely slipped under the radar for so long and only regressed in
b9df2b74b9 because prior to the changes
related to the usage of model states instead of rendered models in the
auto-detector the exact value settings value was never going through a
case folding hoop.

Thanks Andrew Chen Wang for the report and Keryn Knight for the
investigation.

Backport of 4328970780 from main
2021-12-17 10:00:33 +01:00
..
__init__.py Sorted imports in __init__.py files. 2015-06-27 11:53:33 -04:00
config.py Refs #32355 -- Corrected comments about Python's _NamespacePath. 2021-03-26 10:17:10 +01:00
registry.py [4.0.x] Fixed #33366 -- Fixed case handling with swappable setting detection in migrations autodetector. 2021-12-17 10:00:33 +01:00