feat: attrs on product
This commit is contained in:
7
barcodes/attributes/size_attribute_getter.py
Normal file
7
barcodes/attributes/size_attribute_getter.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from barcodes.attributes.base import BaseAttributeGetter
|
||||
from models import Product
|
||||
|
||||
|
||||
class SizeAttributeGetter(BaseAttributeGetter):
|
||||
def get_value(self, product: Product):
|
||||
return product.size
|
||||
Reference in New Issue
Block a user