﻿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
3270	IntegrityError when using unique_together in model in admin interface	anonymous	Adrian Holovaty	"I am using a model with unique_together. It looks similiar to this:

{{{
class Poll(models.Model):
  ...

class Vote(models.Model):
   vote = models.IntegerField(""Vote"", choices=Registration_Choice)
   poll = models.ForeignKey(Poll)
   user = models.ForeignKey(User)

   class Meta:
      unique_together = (('poll', 'user'),)
}}}

When I use the admin webinterface and create an Vote-Object with an not unique combination of poll and user, it will raise an unhandled IntegrityError."	defect	closed	contrib.admin	dev	normal	duplicate	IntegrityError		Unreviewed	0	0	0	0	0	0
