diff options
Diffstat (limited to 'ryuslash/aggregator/templatetags/posts_extras.py')
-rw-r--r-- | ryuslash/aggregator/templatetags/posts_extras.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ryuslash/aggregator/templatetags/posts_extras.py b/ryuslash/aggregator/templatetags/posts_extras.py index 64718a2..ae68483 100644 --- a/ryuslash/aggregator/templatetags/posts_extras.py +++ b/ryuslash/aggregator/templatetags/posts_extras.py @@ -5,10 +5,12 @@ from django.template.defaultfilters import stringfilter register = template.Library() + @stringfilter def nameless(value): return re.sub(r'(^|by[- ])(ryuslash|tom)[- ]?', '', value) + @stringfilter def truncate(value, length): if len(value) > length: |