1
0
mirror of https://github.com/django/django.git synced 2025-10-29 00:26:07 +00:00

[3.1.x] Fixed #32012 -- Made test database creation sync apps models when migrations are disabled.

Thanks Jaap Roes for the report.
Backport of 77caeaea88 from master
This commit is contained in:
Mariusz Felisiak
2020-09-23 10:54:04 +02:00
parent 2c629b37d5
commit fbb7881956
8 changed files with 74 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name='Foo',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
],
),
]