mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #29432 -- Allowed passing an integer to the slice template filter.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user