﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19298	MultiValueField should override __deepcopy__	nick.phillips@…	nobody	"MultiValueField needs to override the default inherited from Field, as it needs to deep-copy subfields:

{{{
    def __deepcopy__(self, memo):
        result = copy.copy(self)
        memo[id(self)] = result
        result.fields = copy.deepcopy(self.fields, memo)
        result.widget = copy.deepcopy(self.widget, memo)
        result.validators = self.validators[:]
        return result
}}}

or

{{{
    def __deepcopy__(self, memo):
        result = super(MultiValueField, self).__deepcopy__(memo)
        result.fields = copy.deepcopy(self.fields, memo)
        return result
}}}

should be added to MultiValueField, if I'm right.

Without this, any ""MyClass"" that subclasses MultiValueField and uses subfields with complex attributes (e.g. ChoiceField's ""choices"") will fail when re-used within the same view."	Bug	closed	Forms	dev	Normal	fixed		nwp	Accepted	1	0	0	0	1	0
