Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
263 B
9 lines
263 B
from django import template
|
|
register = template.Library()
|
|
|
|
from personalni.utils import normalizuj_jmeno
|
|
import seminar.models as m # jen kvůli typové anotaci…
|
|
|
|
@register.filter
|
|
def jmeno_jako_prefix(o: m.Osoba):
|
|
return normalizuj_jmeno(o).replace(' ', '_')
|
|
|