summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-07-31 08:06:46 -0400
committerTim Graham <timograham@gmail.com>2014-07-31 09:25:23 -0400
commit063e7e56bcd34d76e9072ebfa3b9f1d9679dc6e9 (patch)
tree6f90ba7e235b8c26eb2d34f472e18979b9a20241
parent567ae0d52955696d3e329b3a29f13c6b5b3f2208 (diff)
[1.7.x] Fixed flake8 warnings.
Backport of 9a922dcad1 from master
-rw-r--r--django/db/migrations/autodetector.py1
-rw-r--r--tests/model_fields/models.py2
2 files changed, 1 insertions, 2 deletions
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):