﻿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
9707	IntegrityError with Charfield and option unique=True	anonymous	nobody	"I have this model :

{{{
class Group(models.Model):
    idGroup = models.AutoField(primary_key=True)
    name = models.CharField('Name', max_length=50, unique=True)
}}}

In django admin interface when i add a Group with the same name of other Group I obtain the error

Exception Type:  	IntegrityError
Exception Value: 	(1062, ""Duplicate entry 'xxxx' for key 2"")

How can i have a regular validation error in admin interface ?

PS : I use Mysql with InnoDB

Thanks in advance"		closed	Forms	dev		worksforme			Unreviewed	0	0	0	0	0	0
