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:
committed by
Sarah Boyce
parent
8be0c0d690
commit
825ddda26a
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user