Add AUTHOR_SUBSTITUTIONS

This commit is contained in:
Mr. Senko 2016-04-01 23:01:57 +03:00
commit fcd4f9aa0d
5 changed files with 44 additions and 1 deletions

View file

@ -136,4 +136,9 @@ class Tag(URLWrapper):
class Author(URLWrapper):
pass
@property
def slug(self):
if self._slug is None:
self._slug = slugify(self.name,
self.settings.get('AUTHOR_SUBSTITUTIONS', ()))
return self._slug