Files
Fulfillment-Backend/barcodes/attributes/brand_attribute_getter.py
2024-05-10 16:18:26 +03:00

12 lines
279 B
Python

from barcodes.attributes.base import BaseAttributeGetter
from models import Product
class BrandAttributeGetter(BaseAttributeGetter):
def get_value(self, product: Product):
result = product.brand
if not result:
result = ''
return result