diff --git a/core/graphene/object_types.py b/core/graphene/object_types.py index 0b8eb3b6..33af0fec 100644 --- a/core/graphene/object_types.py +++ b/core/graphene/object_types.py @@ -87,6 +87,12 @@ class BrandType(DjangoObjectType): return self.categories.all() return self.categories.filter(is_active=True) + def resolve_big_logo(self, info): + return info.context.build_absolute_uri(self.big_logo.url) if self.big_logo else "" + + def resolve_small_logo(self, info): + return info.context.build_absolute_uri(self.small_logo.url) if self.small_logo else "" + class FilterableAttributeType(ObjectType): attribute_name = String(required=True)