summaryrefslogtreecommitdiff
path: root/django/forms/formsets.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-30 12:11:05 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-30 12:11:05 -0700
commit778ce245dd466bce1b19f89e52cf9ed8f1b46513 (patch)
tree2de2ad5574c99a5918eb35d9bbb6d7c4fdd86ed7 /django/forms/formsets.py
parent92dbf342868e68dfe60569c60dd5aa5925194221 (diff)
Corrected many style guide violations that the newest version of flake8 catches
Diffstat (limited to 'django/forms/formsets.py')
-rw-r--r--django/forms/formsets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/formsets.py b/django/forms/formsets.py
index d5600867e1..9c4c7b5b9a 100644
--- a/django/forms/formsets.py
+++ b/django/forms/formsets.py
@@ -153,7 +153,7 @@ class BaseFormSet(object):
if self.is_bound:
defaults['data'] = self.data
defaults['files'] = self.files
- if self.initial and not 'initial' in kwargs:
+ if self.initial and 'initial' not in kwargs:
try:
defaults['initial'] = self.initial[i]
except IndexError: