﻿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
12881	Unique constraint error with model inheritance while ModelForm should not validate	fgaudin	nobody	"The use case is :

 * ParentClass has an attribute ""name"" with unique=True
 * FirstSubClass inherits ParentClass
 * SecondSubClass inherits ParentClass

With a ModelForm for each subclass, I can't create two FirstSubClasses with the same name, neither two SecondSubClasses, the form doesn't validate, what is expected.
But if I create a FirstSubClass instance and try to create a SecondSubClass instance, the form validate and unique constraint error is raised by postgres.

A project showing the use case with unit tests is in attachment."		closed	Database layer (models, ORM)	1.1		fixed	unique constraint, ModelForm, inheritance		Accepted	1	0	0	0	0	0
