def _clone_fields(self, fields): attrs = get_simple_column_attrs(ContributionFieldValue) for old_field_value in fields: field_value = ContributionFieldValue() field_value.contribution_field = self._contrib_field_map[old_field_value.contribution_field] field_value.populate_from_attrs(old_field_value, attrs) yield field_value
def _clone_fields(self, fields): attrs = get_simple_column_attrs(ContributionFieldValue) for old_field_value in fields: field_value = ContributionFieldValue() field_value.contribution_field = self._contrib_field_map[old_field_value.contribution_field] field_value.populate_from_attrs(old_field_value, attrs) yield field_value