I have a model field, which stores a list of URLs (yeah, I know, that\'s wrong way) as url1\\nurl2\\nurl3<...>. I need to split the field into an array in
url1\\nurl2\\nurl3<...>
Hm, I have partly solved this problem. I changed my filter to:
@register.filter(name='split') def split(value, arg): return value.split('\n')
Why it didn't work with the original code?