Is there a filter in the Django template for working with slices of strings?

truncatechars does not fit, you must trim + the phone number. Or you have to write your own? How strange that for a slice, but nothing for strings. Poke nose if overlooked.
April 19th 20 at 12:14
1 answer
April 19th 20 at 12:16
"Oddly", but slice works with strings.
Hmm... I guess I failed because I was trying to cut the line, and the object returned by a library django-phonenumber-field. Well, confused, that in the docks about the row and slice is not a word. Evening will do, thank you. - braulio.Monah commented on April 19th 20 at 12:19
@thora, cut + so:
<a href="//{{ social_links.phone_number|stringformat:'s'|slice:'1:' }}"
Thanks again. - braulio.Monah commented on April 19th 20 at 12:22

Find more questions by tags Django