#NEWLINE# def results( cl ) : #NEWLINE# #INDENT# if hasattr ( cl . model_admin , 'quick_editable' ) : #NEWLINE# #INDENT# qe_form = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# qe_form = False #NEWLINE# #UNINDENT# if cl . formset : #NEWLINE# #INDENT# if qe_form : #NEWLINE# #INDENT# for ( res , form ) in zip ( cl . result_list , res . formset . forms ) : #NEWLINE# #INDENT# ( yield { #NEWLINE# #INDENT# 'fields' : list ( items_for_result ( cl , res , form ) ) , #NEWLINE# 'quickedit' : form , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for ( res , form ) in zip ( cl . result_list , cl . formset . forms ) : #NEWLINE# #INDENT# ( yield list ( items_for_result ( cl , res , form ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if qe_form : #NEWLINE# #INDENT# for res in cl . result_list : #NEWLINE# #INDENT# ( yield { #NEWLINE# #INDENT# 'fields' : list ( items_for_result ( cl , res , None ) ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for res in cl . result_list : #NEWLINE# #INDENT# ( yield list ( items_for_result ( cl , res , None ) ) )