def clean_title(self): """ Page title must be a WikiWord. """ title = downcode(self.cleaned_data['title']).lower() return title
def slugify_wikiword(match): wiki_url = '<a href="../%s/">%s</a>' % (downcode(match.group(2) or match.group(1)).lower(), match.group(1)) return wiki_url