<s> from django import template <EOL> register = template . Library ( ) <EOL> @ register . assignment_tag <EOL> def purchase_info_for_product ( request , product ) : <EOL> if product . is_parent : <EOL> return request . strategy . fetch_for_parent ( product ) <EOL> return request . strategy . fetch_for_product ( product ) <EOL> @ register . assignment_tag <EOL> def purchase_info_for_line ( request , line ) : <EOL> return request . strategy . fetch_for_line ( line ) </s>
