10 lines
		
	
	
		
			209 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			209 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from barcodes.attributes.base import BaseAttributeGetter
 | 
						|
from models import Product
 | 
						|
 | 
						|
 | 
						|
class BrandAttributeGetter(BaseAttributeGetter):
 | 
						|
 | 
						|
    def get_value(self, product: Product):
 | 
						|
        return product.brand
 | 
						|
 |