﻿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
2470	unique_together and edit_inline causes error in admin, depending on uniqueness order	dk@…	Adrian Holovaty	"Given this model snippet, I get an error displaying Country objects in the admin.
The error message is: 'ChangeManipulator' object has no attribute 'isUniquecountry_price'

{{{
class Amount( models.Model):
    amount    = models.FloatField( _(""Amount""), decimal_places=2, max_digits=5, core=True)
    country   = models.ForeignKey( Country)
    price     = models.ForeignKey( Price, edit_inline=models.TABULAR)

    class Meta:
        verbose_name = _('Amount')
        verbose_name_plural = _('Amounts')
        unique_together = (('country', 'price'),)
}}}

However, the error does not occur if the uniqueness constraint is changed to read:
{{{
 unique_together = (('price', 'country'),)
}}}

(Postgres, 0.95 rev 3512)
"	defect	closed	contrib.admin	dev	normal	duplicate			Unreviewed	0	0	0	0	0	0
