summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2016-02-23 15:39:20 -0800
committerTim Graham <timograham@gmail.com>2016-02-24 07:02:51 -0500
commitb41268135995cef46d40e550f9301fab20cf330d (patch)
tree063e280d5debf94c734de62bfe048fa6f05e7244 /django
parent1ff6e37de46f0cbf271a287a0ca67678e741a90a (diff)
Fixed #26267 -- Fixed BoundField to reallow slices of subwidgets.
Diffstat (limited to 'django')
-rw-r--r--django/forms/boundfield.py2
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]