search: ascii everywhere and unformalized whitespace

This commit is contained in:
tleb
2020-04-21 13:50:43 +02:00
committed by Skia
parent 1a483bfa2c
commit 30091ef69c
4 changed files with 46 additions and 4 deletions

View File

@ -1,3 +1,13 @@
{{ object.first_name }}
{{ object.last_name }}
{{ object.nick_name }}
{% load replace %}
{% with first=object.first_name|safe|slugify last=object.last_name|safe|slugify nick=object.nick_name|default_if_none:""|safe|slugify %}
{{ first|replace:"|-| " }}
{{ last|replace:"|-| " }}
{{ nick|replace:"|-| " }}
{{ first|cut:"-" }}
{{ last|cut:"-" }}
{{ nick|cut:"-" }}
{{ first|cut:"-" }}{{ last|cut:"-" }}
{% endwith %}