diff options
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/boundfield.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/boundfield.py b/django/forms/boundfield.py index bcfe2e2a2d..6567c4f08f 100644 --- a/django/forms/boundfield.py +++ b/django/forms/boundfield.py @@ -60,7 +60,7 @@ class BoundField(object): def __getitem__(self, idx): # Prevent unnecessary reevaluation when accessing BoundField's attrs # from templates. - if not isinstance(idx, six.integer_types): + if not isinstance(idx, six.integer_types + (slice,)): raise TypeError return list(self.__iter__())[idx] |
