#NEWLINE# def render_as_field( self ) : #NEWLINE# #INDENT# instance_obj = self . get_chosen_item ( ) #NEWLINE# context = { #NEWLINE# #INDENT# 'field' : self . bound_field , #NEWLINE# self . object_type_name : instance_obj , #NEWLINE# 'is_chosen' : bool ( instance_obj ) , #NEWLINE# #UNINDENT# } #NEWLINE# return mark_safe ( render_to_string ( self . field_template , context ) )