Fixes: 1) Add support for passing additional keyword arguments (**kwargs) to resolve_brands method.

This commit is contained in:
Egor Pavlovich Gorbunov 2025-05-30 18:05:43 +03:00
parent eb59f9c96e
commit 7cf133dccf

View file

@ -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()