#NEWLINE# def get_value( self , dictionary ) : #NEWLINE# #INDENT# value = super ( TypedAttachmentListSerializer , self ) . get_value ( dictionary ) #NEWLINE# if ( not isinstance ( value , list ) ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# for ( i , row ) in enumerate ( value ) : #NEWLINE# #INDENT# empty = True #NEWLINE# if isinstance ( row , dict ) : #NEWLINE# #INDENT# for ( key , val ) in row . items ( ) : #NEWLINE# #INDENT# if ( key == self . child . Meta . type_field ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if val : #NEWLINE# #INDENT# empty = False #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# if empty : #NEWLINE# #INDENT# value [ i ] = None #NEWLINE# #UNINDENT# #UNINDENT# return value