summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3/base.py
diff options
context:
space:
mode:
authorWilliam Schwartz <wkschwartz@gmail.com>2020-12-28 16:05:18 -0600
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-12-29 12:54:08 +0100
commite64c1d8055a3e476122633da141f16b50f0c4a2d (patch)
tree6095d21b79f0f82fbe9aec730b4ec0d6eaba476e /django/db/backends/sqlite3/base.py
parent98ad327864aed8df245fd19ea9d2743279e11643 (diff)
Fixed #32302 -- Allowed migrations to be loaded from regular packages with no __file__ attribute.
The migrations loader prevents the use of PEP-420 namespace packages for holding apps' migrations modules. Previously the loader tested for this only by checking that app.migrations.__file__ is present. This prevented migrations' being found in frozen Python environments that don't set __file__ on any modules. Now the loader *additionally* checks whether app.migrations.__path__ is a list because namespace packages use a different type for __path__. Namespace packages continue to be forbidden, and, in fact, users of normal Python environments should experience no change whatsoever.
Diffstat (limited to 'django/db/backends/sqlite3/base.py')
0 files changed, 0 insertions, 0 deletions