﻿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
35560	Model.full_clean() errors with GeneratedField and UniqueConstraint or CheckConstraint	Mark Gensler	Mark Gensler	"Calling `full_clean()` on an unsaved model instance which has either a `UniqueConstraint` or `CheckConstraint` raises the error:

`AttributeError: Cannot read a generated field from an unsaved model.`

This is similar to #35127.

The PR which will be attached shortly contains 4 new failing tests:
{{{
model_fields.test_generatedfield.GeneratedFieldTests.test_full_clean_with_unique_constraint
model_fields.test_generatedfield.GeneratedFieldTests.test_full_clean_with_check_constraint
model_fields.test_generatedfield.VirtualGeneratedFieldTests.test_full_clean_with_unique_constraint
model_fields.test_generatedfield.VirtualGeneratedFieldTests.test_full_clean_with_check_constraint
}}}"	Bug	closed	Database layer (models, ORM)	5.0	Release blocker	fixed	generatedfield uniqueconstraint checkconstraint	Mark Gensler Mariusz Felisiak Lily Foote Paolo Melchiorre	Ready for checkin	1	0	0	0	0	0
