Kaydet (Commit) 471fb04a authored tarafından Tim Graham's avatar Tim Graham

Fixed flake8 errors.

üst bbe818b2
...@@ -129,6 +129,7 @@ class Migration(object): ...@@ -129,6 +129,7 @@ class Migration(object):
operation.database_backwards(self.app_label, schema_editor, from_state, to_state) operation.database_backwards(self.app_label, schema_editor, from_state, to_state)
return project_state return project_state
def swappable_dependency(value): def swappable_dependency(value):
""" """
Turns a setting value into a dependency. Turns a setting value into a dependency.
......
...@@ -297,18 +297,21 @@ class StateTests(TestCase): ...@@ -297,18 +297,21 @@ class StateTests(TestCase):
class Author(models.Model): class Author(models.Model):
name = models.TextField() name = models.TextField()
class Meta: class Meta:
app_label = "migrations" app_label = "migrations"
apps = new_apps apps = new_apps
class Book(models.Model): class Book(models.Model):
author = models.ForeignKey(Author) author = models.ForeignKey(Author)
class Meta: class Meta:
app_label = "migrations" app_label = "migrations"
apps = new_apps apps = new_apps
class Magazine(models.Model): class Magazine(models.Model):
authors = models.ManyToManyField(Author) authors = models.ManyToManyField(Author)
class Meta: class Meta:
app_label = "migrations" app_label = "migrations"
apps = new_apps apps = new_apps
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment