#NEWLINE# def choices( self , cl ) : #NEWLINE# #INDENT# ( yield { #NEWLINE# #INDENT# 'selected' : ( self . lookup_val is None ) , #NEWLINE# 'query_string' : cl . get_query_string ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , [ self . lookup_kwarg ] ) , #NEWLINE# 'display' : _ ( 'All' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# for ( lookup , title ) in self . field . flatchoices : #NEWLINE# #INDENT# ( yield { #NEWLINE# #INDENT# 'selected' : ( smart_text ( cl ) == self . lookup_val ) , #NEWLINE# 'query_string' : cl . get_query_string ( { #NEWLINE# #INDENT# self . lookup_kwarg : lookup , #NEWLINE# #UNINDENT# } ) , #NEWLINE# 'display' : title , #NEWLINE# #UNINDENT# } )