﻿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
14531	Add validate_unique flag to ModelForm.Meta	Greg Wogan-Browne	Greg Wogan-Browne	"`ModelForm`'s currently have a wart in that if you override `clean()`
you have to call `super()` to ensure that unique constraints are validated.

This can lead to surprises if you haven't read the documentation closely.

It seems to me this would be better as a property on the `Meta` class.

Example:
{{{
    class DontCheckForm(ModelForm):
        def clean(self):
	    return self.cleaned_data
	class Meta:
	    model = SomeModel
}}}
Becomes:
{{{
    class DontCheckForm(ModelForm):
        class Meta:
	    model = SomeModel
	    validate_unique = False
}}}
"		closed	Forms	1.2		wontfix			Unreviewed	1	1	1	1	0	0
