﻿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
32703	Deferred UniqueConstraints should not be validated in validate_unique()	Manuel Baclet	nobody	"When using a deferred UniqueConstraint, we are expecting validation not to occur before transaction commit.
Considering a model with a field `unique_valued_field` with a deferred UniqueConstraint and two instances `m1` and `m2`, we should be able to do:
{{{#!python
with transaction.atomic():
    saved_value = m1.unique_valued_field
    m1.unique_valued_field = m2.unique_valued_field
    m2.unique_valued_field = saved_value
    m1.save()
    m2.save()
}}}
Currently, this raises a `ValidationError`."	Bug	closed	Database layer (models, ORM)	3.1	Normal	invalid	UniqueConstraint deferrable	Manuel Baclet	Unreviewed	0	1	0	0	1	0
