From 7cf133dccf11b52dee56223987fa1b1d9967e583 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Fri, 30 May 2025 18:05:43 +0300 Subject: [PATCH] Fixes: 1) Add support for passing additional keyword arguments (**kwargs) to `resolve_brands` method. --- core/graphene/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/graphene/schema.py b/core/graphene/schema.py index f8f2520e..986c952f 100644 --- a/core/graphene/schema.py +++ b/core/graphene/schema.py @@ -199,7 +199,7 @@ class Query(ObjectType): return Vendor.objects.all() @staticmethod - def resolve_brands(_parent, info): + def resolve_brands(_parent, info, **kwargs): if not info.context.user.has_perm("core.view_brand"): return Brand.objects.filter(is_active=True) return Brand.objects.all()