#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( CouchIndicatorForm , self ) . __init__ ( * kwargs , ** kwargs ) #NEWLINE# if self . existing_object : #NEWLINE# #INDENT# self . fields [ 'doc_type_choices' ] . widget . choices = [ ( d . __name__ , d . get_nice_name ( ) ) for d in self . available_doc_types ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# del self . fields [ 'change_doc_type' ] #NEWLINE# del self . fields [ 'doc_type_choices' ]