﻿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
19643	TypedChoiceField and TypedMultipleChoiceField call the super validate() method instead of their own	Berislav Lopac	Berislav Lopac	"As it can be seen on https://github.com/django/django/blob/master/django/forms/fields.py#L730, instead of calling self.validate() the code is actually super(TypedChoiceField, self).validate(value); it's the same on https://github.com/django/django/blob/master/django/forms/fields.py#L780

On the other hand, the definition of the validate() methods in both classes is a simple ""pass"".

I believe this is a bug because it makes it impossible to extend those classes and customize the validate() method. Specifically, in this example the validate() is never called:


{{{
class CustomTypedMultipleChoiceField(forms.TypedMultipleChoiceField):
    def validate(self, value):
        print(""CustomTypedMultipleChoiceField.validate"")
}}}


I propose that, instead of the current situation, lines 730 and 780 are replaced with self.validate(), and the validate() method definitions are either removed or changed to call the super."	Bug	closed	Forms	dev	Normal	fixed	MultipleChoiceField TypedMultipleChoiceField	frnhr	Accepted	1	0	1	0	1	0
