mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Removed usaged of contrib.sessions as a placeholder in migration tests.
Without this, we're unable to add actual migrations for the app.
This commit is contained in:
parent
c8c79367a2
commit
808388c28c
5 changed files with 22 additions and 10 deletions
0
tests/migrations2/__init__.py
Normal file
0
tests/migrations2/__init__.py
Normal file
1
tests/migrations2/models.py
Normal file
1
tests/migrations2/models.py
Normal file
|
@ -0,0 +1 @@
|
|||
# Required for migration detection (#22645)
|
24
tests/migrations2/test_migrations_2/0001_initial.py
Normal file
24
tests/migrations2/test_migrations_2/0001_initial.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [("migrations", "0002_second")]
|
||||
|
||||
operations = [
|
||||
|
||||
migrations.CreateModel(
|
||||
"OtherAuthor",
|
||||
[
|
||||
("id", models.AutoField(primary_key=True)),
|
||||
("name", models.CharField(max_length=255)),
|
||||
("slug", models.SlugField(null=True)),
|
||||
("age", models.IntegerField(default=0)),
|
||||
("silly_field", models.BooleanField(default=False)),
|
||||
],
|
||||
),
|
||||
|
||||
]
|
0
tests/migrations2/test_migrations_2/__init__.py
Normal file
0
tests/migrations2/test_migrations_2/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue