#NEWLINE# def _conds_for_removal( self , key , update , push_fn ) : #NEWLINE# #INDENT# "Determine if an attribute should be removed before POST.\n\n        Attributes should be removed if we don't expect them or if they\n        aren't to be written to. Because relations are incliuded as attributes\n        as well, remove these too.\n        " #NEWLINE# return ( ( key in push_fn . _readonly ) or ( key in self . _relations ) or ( update and ( key in self . _readonly_update ) ) or ( push_fn is False ) )