Files
Fulfillment-Backend/barcodes/attributes/name_attribute_getter.py
2024-05-09 03:33:44 +03:00

8 lines
200 B
Python

from barcodes.attributes import BaseAttributeGetter
from models import Product
class NameAttributeGetter(BaseAttributeGetter):
def get_value(self, product: Product):
return product.name