Commit 2fd15b41 authored by Dan McGee's avatar Dan McGee
Browse files

Move needs_autoescape attribute to @register.filter

This is the preferred and non-deprecated way of doing this in Django
Signed-off-by: default avatarDan McGee <>
parent ca560f95
......@@ -47,7 +47,8 @@ def user_pgp_key_link(users, key_id):
return pgp_key_link(key_id, matched[0].get_full_name())
return pgp_key_link(key_id)
def pgp_fingerprint(key_id, autoescape=True):
if not key_id:
return u''
......@@ -56,7 +57,6 @@ def pgp_fingerprint(key_id, autoescape=True):
esc = lambda x: x
return mark_safe(format_key(esc(key_id)))
pgp_fingerprint.needs_autoescape = True
Supports Markdown
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