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