﻿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
27660	clean() not called on ModelForm for UpdateView	Benjamin von Deschwanden	nobody	"I am using a ModelForm as the 'form' attribute of an UpdateView. Overriding the clean() method of the ModelForm does not work; the method does not seem to be called. The undesired behavior can be reconstructed as follows:

- Set up new django project
- Create view and form:

{{{
    class RouteUpdate(UpdateView):
        model = Route
        form_class = RouteForm

    class RouteForm(ModelForm):
        class Meta:
            model = Route
            fields = [...]

        def clean(self):
            cleaned_data = super(RouteForm, self).clean()
            print(""This method will not be executed..."")
            return cleaned_data
}}}"	Bug	closed	Forms	1.10	Normal	invalid	ModelForm, UpdateView, clean()		Unreviewed	0	0	0	0	0	0
