#NEWLINE# def get_serializer_info( self , serializer ) : #NEWLINE# #INDENT# '\n        Given an instance of a serializer, return a dictionary of metadata\n        about its fields.\n        ' #NEWLINE# if hasattr ( serializer , 'child' ) : #NEWLINE# #INDENT# serializer = serializer . child #NEWLINE# #UNINDENT# return OrderedDict ( [ ( field_name , self . get_field_info ( field ) ) for ( field_name , field ) in serializer . fields . items ( ) ] )