Fixes: 1) Add support for passing additional keyword arguments (**kwargs) to resolve_brands method.
This commit is contained in:
parent
eb59f9c96e
commit
7cf133dccf
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ class Query(ObjectType):
|
||||||
return Vendor.objects.all()
|
return Vendor.objects.all()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def resolve_brands(_parent, info):
|
def resolve_brands(_parent, info, **kwargs):
|
||||||
if not info.context.user.has_perm("core.view_brand"):
|
if not info.context.user.has_perm("core.view_brand"):
|
||||||
return Brand.objects.filter(is_active=True)
|
return Brand.objects.filter(is_active=True)
|
||||||
return Brand.objects.all()
|
return Brand.objects.all()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue