diff options
| author | Emre Yilmaz <mail@emreyilmaz.me> | 2015-12-03 18:51:39 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-21 12:54:29 -0500 |
| commit | 63a6a653d4282f74e35582d41ca507139c9cfbe1 (patch) | |
| tree | 51488cfd102ba5ea4858415aa60ecb6bee5eff9f /tests/admin_scripts/another_app_waiting_migration | |
| parent | 541000773a19d829a46fd4bec3655dca38a95551 (diff) | |
Fixed #25855 -- Enhanced the migration warning for runserver.
Added unapplied migration count and the list of unmigrated apps.
Diffstat (limited to 'tests/admin_scripts/another_app_waiting_migration')
4 files changed, 31 insertions, 0 deletions
diff --git a/tests/admin_scripts/another_app_waiting_migration/__init__.py b/tests/admin_scripts/another_app_waiting_migration/__init__.py new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/admin_scripts/another_app_waiting_migration/__init__.py diff --git a/tests/admin_scripts/another_app_waiting_migration/migrations/0001_initial.py b/tests/admin_scripts/another_app_waiting_migration/migrations/0001_initial.py new file mode 100644 index 0000000000..1486231d6b --- /dev/null +++ b/tests/admin_scripts/another_app_waiting_migration/migrations/0001_initial.py @@ -0,0 +1,21 @@ +from __future__ import unicode_literals + +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)), + ], + ), + ] diff --git a/tests/admin_scripts/another_app_waiting_migration/migrations/__init__.py b/tests/admin_scripts/another_app_waiting_migration/migrations/__init__.py new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/admin_scripts/another_app_waiting_migration/migrations/__init__.py diff --git a/tests/admin_scripts/another_app_waiting_migration/models.py b/tests/admin_scripts/another_app_waiting_migration/models.py new file mode 100644 index 0000000000..6c12c6ab5d --- /dev/null +++ b/tests/admin_scripts/another_app_waiting_migration/models.py @@ -0,0 +1,10 @@ +from __future__ import unicode_literals + +from django.db import models + + +class Foo(models.Model): + name = models.CharField(max_length=255) + + class Meta: + app_label = 'another_app_waiting_migration' |
