summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
authorRay Ashman Jr <ray.ashman.jr@gmail.com>2013-11-02 15:27:47 -0400
committerRay Ashman Jr <ray.ashman.jr@gmail.com>2013-11-02 15:27:47 -0400
commitdcfc8fa9721955dc4fcfb6e5e506be12f74c5b85 (patch)
treedb0ff9bc296501a9f8eb5f7b44e3b49652103992 /django/forms/widgets.py
parentb44d42be6d05e88071844b64c6519223cdd2fa80 (diff)
Correct flake8 violation E261
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 58bcabef98..89d8544d75 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -161,8 +161,8 @@ class SubWidget(object):
return self.parent_widget.render(*args)
class Widget(six.with_metaclass(MediaDefiningClass)):
- is_hidden = False # Determines whether this corresponds to an <input type="hidden">.
- needs_multipart_form = False # Determines does this widget need multipart form
+ is_hidden = False # Determines whether this corresponds to an <input type="hidden">.
+ needs_multipart_form = False # Determines does this widget need multipart form
is_localized = False
is_required = False
@@ -227,7 +227,7 @@ class Input(Widget):
Base class for all <input> widgets (except type='checkbox' and
type='radio', which are special).
"""
- input_type = None # Subclasses must define this.
+ input_type = None # Subclasses must define this.
def _format_value(self, value):
if self.is_localized:
@@ -643,7 +643,7 @@ class ChoiceFieldRenderer(object):
self.choices = choices
def __getitem__(self, idx):
- choice = self.choices[idx] # Let the IndexError propogate
+ choice = self.choices[idx] # Let the IndexError propogate
return self.choice_input_class(self.name, self.value, self.attrs.copy(), choice, idx)
def __str__(self):