def METHOD_NAME(self):
    """
    Property used in template as a param to cache invalidation.
    Hash for caching is calculated from user ID and its permissions.
    """
    perms_set = frozenset(self.get_all_permissions())
    key = ':'.join((str(self.id), str(hash(perms_set))))
    return hashlib.md5(force_bytes(key)).hexdigest()