@register.filter
def can_delete(obj, user):
 return obj.can_delete(user)

@ register . filter def can_delete ( obj , user ) : return obj . can_delete ( user )
return true if the requester can delete the given content .