<s> from django import template <EOL> register = template . Library ( ) <EOL> def product_upsell ( product ) : <EOL> """<STR_LIT>""" <EOL> goals = None <EOL> if product . upselltargets . count ( ) > <NUM_LIT:0> : <EOL> goals = product . upselltargets . all ( ) <EOL> return { '<STR_LIT>' : goals } <EOL> register . inclusion_tag ( "<STR_LIT>" , takes_context = False ) ( product_upsell ) </s>
