def has_permission(self, perm, **kwargs):
        func_name = perm % 'has_%s_permission'
        if hasattr(self, func_name):
            return getattr(self, func_name)(**kwargs)
        return False
dataset/ETHPy150Open zbyte64/django-hyperadmin/hyperadmin/resources/crud/resources.py/CRUDResource.has_permission/swapped operands of `%`