9 lines
		
	
	
		
			220 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			220 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from barcodes.attributes.base import BaseAttributeGetter
 | 
						|
from models import Product
 | 
						|
 | 
						|
 | 
						|
class CompositionAttributeGetter(BaseAttributeGetter):
 | 
						|
 | 
						|
    def get_value(self, product: Product):
 | 
						|
        return product.composition
 |