def has_module_perms(self, user_obj, app_label):
        cache_name = "_has_module_perms_%s_%s_cache" % (app_label, user_obj.pk)
        if hasattr(self, cache_name):
            return getattr(self, cache_name)
        if self.app_label != app_label:
            setattr(self, cache_name, False)
        else:
            for permission in self.get_supported_permissions():
                if user_obj.has_perm(permission):
                    setattr(self, cache_name, True)
                    return True
        setattr(self, cache_name, False)
        return False
Verify that an entire blueprint can be excluded.
dataset/ETHPy150Open lambdalisue/django-permission/src/permission/handlers.py/PermissionHandler.has_module_perms--crossover with--dataset/ETHPy150Open ashcrow/flask-track-usage/test/test_blueprints_include_exclude.py/TestBlueprintIncludeExclude.test_exclude_blueprint