1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #33174 -- Fixed migrations crash for model inheriting from Generic[T].

This commit is contained in:
Thibaut Decombe
2025-04-26 17:02:57 +02:00
committed by Sarah Boyce
parent 8be0c0d690
commit 825ddda26a
7 changed files with 117 additions and 0 deletions

View File

@@ -1551,6 +1551,14 @@ class MigrateTests(MigrationTestBase):
recorder.record_unapplied("migrations2", "0002_second")
recorder.record_unapplied("migrations2", "0001_squashed_0002")
@override_settings(
INSTALLED_APPS=[
"migrations.migrations_test_apps.with_generic_model",
]
)
def test_migrate_model_inherit_generic(self):
call_command("migrate", verbosity=0)
class MakeMigrationsTests(MigrationTestBase):
"""