diff --git a/django/db/migrations/autodetector.py b/django/db/migrations/autodetector.py index dd9595bd7e..5ffa22d8ce 100644 --- a/django/db/migrations/autodetector.py +++ b/django/db/migrations/autodetector.py @@ -716,7 +716,6 @@ class MigrationAutodetector(object): self.renamed_fields[app_label, model_name, field_name] = rem_field_name break - def generate_added_fields(self): """ Fields that have been added diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index 177d48f9da..f53c45c693 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -58,7 +58,7 @@ class Counter(six.Iterator): raise StopIteration else: self.n += 1 - return (self.n, 'val-'+str(self.n)) + return (self.n, 'val-' + str(self.n)) class WhizIter(models.Model):