blob: ca241b16c9d47a19657666b876c79f98162db487 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import re
from django import template
from django.template.defaultfilters import stringfilter
register = template.Library()
@stringfilter
def nameless(value):
return re.sub(r'^(ryuslash|tom)[- ]?', '', value)
register.filter('nameless', nameless)
|