@register.filter()
def decryptable_by(secret, user):
 return secret.decryptable_by(user)

@ register . filter ( ) def decryptable_by ( secret , user ) : return secret . decryptable_by ( user )
determine whether a given user is permitted to decrypt a secret .