Loading django/db/migrations/migration.py +1 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ class Migration(object): operation.database_backwards(self.app_label, schema_editor, from_state, to_state) return project_state def swappable_dependency(value): """ Turns a setting value into a dependency. Loading tests/migrations/test_state.py +3 −0 Original line number Diff line number Diff line Loading @@ -297,18 +297,21 @@ class StateTests(TestCase): class Author(models.Model): name = models.TextField() class Meta: app_label = "migrations" apps = new_apps class Book(models.Model): author = models.ForeignKey(Author) class Meta: app_label = "migrations" apps = new_apps class Magazine(models.Model): authors = models.ManyToManyField(Author) class Meta: app_label = "migrations" apps = new_apps Loading tests/migrations/test_autodetector.py +2 −2 File changed.Contains only whitespace changes. Show changes Loading
django/db/migrations/migration.py +1 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ class Migration(object): operation.database_backwards(self.app_label, schema_editor, from_state, to_state) return project_state def swappable_dependency(value): """ Turns a setting value into a dependency. Loading
tests/migrations/test_state.py +3 −0 Original line number Diff line number Diff line Loading @@ -297,18 +297,21 @@ class StateTests(TestCase): class Author(models.Model): name = models.TextField() class Meta: app_label = "migrations" apps = new_apps class Book(models.Model): author = models.ForeignKey(Author) class Meta: app_label = "migrations" apps = new_apps class Magazine(models.Model): authors = models.ManyToManyField(Author) class Meta: app_label = "migrations" apps = new_apps Loading
tests/migrations/test_autodetector.py +2 −2 File changed.Contains only whitespace changes. Show changes