Commit 7343014f authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Import templatetags from django-representatives[-votes]

parent bbf10045
......@@ -21,6 +21,10 @@ def fix_url(url):
return re.sub('^(https?://)?', 'https://', url.strip())
def cssify(string):
return re.sub('[^a-z_-]', '', string.lower())
@register.filter
def twitter_link(url):
furl = fix_url(url)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment