#NEWLINE# def has_active_field( klass ) : #NEWLINE# #INDENT# for field in field . _meta . fields : #NEWLINE# #INDENT# if ( ( field . name == 'active' ) and isinstance ( field , models . BooleanField ) ) : #NEWLINE# #INDENT# return True