summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorryabtsev <e.ryabtsev@gmail.com>2018-05-27 02:56:51 +0200
committerTim Graham <timograham@gmail.com>2018-05-26 20:56:51 -0400
commitb4fd9b5ad481c446636befa40cce5a2b5e9799fc (patch)
tree8bb2221b16a680aad9237f8fcfd99a78a8d9589c /django/template
parent39283c8edbc5991b589d48a8e17152042193f2df (diff)
Fixed #29432 -- Allowed passing an integer to the slice template filter.
Diffstat (limited to 'django/template')
-rw-r--r--django/template/defaultfilters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py
index 2346f50383..ef7ae8679d 100644
--- a/django/template/defaultfilters.py
+++ b/django/template/defaultfilters.py
@@ -573,7 +573,7 @@ def slice_filter(value, arg):
"""
try:
bits = []
- for x in arg.split(':'):
+ for x in str(arg).split(':'):
if not x:
bits.append(None)
else: