#NEWLINE# def __init__( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# super ( SetNetworkAction , self ) . __init__ ( request , * args , ** kwargs ) #NEWLINE# network_list = self . fields [ 'network' ] . choices #NEWLINE# if ( len ( network_list ) == 1 ) : #NEWLINE# #INDENT# self . fields [ 'network' ] . initial = [ network_list [ 0 ] [ 0 ] ]