<s> from django import template <EOL> register = template . Library ( ) <EOL> @ register . filter_function <EOL> def attr ( obj , arg1 ) : <EOL> """<STR_LIT>""" <EOL> att , value = arg1 . split ( "<STR_LIT:=>" ) <EOL> obj . field . widget . attrs [ att ] = value <EOL> return obj </s>
