Kaydet (Commit) e50e0ee2 authored tarafından Claude Paroz's avatar Claude Paroz

Fixed #23618 -- Allowed apps with no models to still have migrations

Basically a4737bf6 reapplied.
üst adf8fb34
......@@ -63,8 +63,6 @@ class MigrationLoader(object):
self.unmigrated_apps = set()
self.migrated_apps = set()
for app_config in apps.get_app_configs():
if app_config.models_module is None:
continue
# Get the migrations module directory
module_name = self.migrations_module(app_config.label)
was_loaded = module_name in sys.modules
......
......@@ -276,6 +276,9 @@ Migrations
* The :class:`~django.db.migrations.operations.RunSQL` operation can now handle
parameters passed to the SQL statements.
* It is now possible to have migrations (most probably :ref:`data migrations
<data-migrations>`) for applications without models.
Models
^^^^^^
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment