#NEWLINE# def serializer_repr( serializer , indent , force_many = None ) : #NEWLINE# #INDENT# ret = ( field_repr ( serializer , force_many ) + ':' ) #NEWLINE# indent_str = ( '    ' * indent ) #NEWLINE# if force_many : #NEWLINE# #INDENT# fields = force_many . fields #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# fields = serializer . fields #NEWLINE# #UNINDENT# for ( field_name , field ) in fields . items ( ) : #NEWLINE# #INDENT# ret += ( ( ( '\n' + indent_str ) + field_name ) + ' = ' ) #NEWLINE# if hasattr ( field , 'fields' ) : #NEWLINE# #INDENT# ret += serializer_repr ( field , ( indent + 1 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( field , 'child' ) : #NEWLINE# #INDENT# ret += list_repr ( field , ( indent + 1 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( field , 'child_relation' ) : #NEWLINE# #INDENT# ret += field_repr ( field . child_relation , force_many = field . child_relation ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ret += field_repr ( field ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# if serializer . validators : #NEWLINE# #INDENT# ret += ( ( '\n' + indent_str ) + 'class Meta:' ) #NEWLINE# ret += ( ( ( '\n' + indent_str ) + '    validators = ' ) + smart_repr ( serializer . validators ) ) #NEWLINE# #UNINDENT# return ret