﻿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
28111	Allow skipping validations done in database for Model.full_clean()	holvianssi	nobody	"A common practice for Model.save() is to do something like:
{{{
def save():
     self.full_clean()
     super().save()
}}}
The idea is to validate for example field.choices, and other things that aren't checked in database. Unfortunately this also checks unique constraints, foreign keys etc, which is non-necessary in the common case - the checks would be ran in the database in any case, and the db is much faster in checking these constraints.

It would be nice that we could instead do something like this:
{{{
def save():
     self.full_clean(skip_checks_done_in_database=True)
     super().save()
}}}
This way we would have the additional safety of checking choices and other things that aren't checked in the database, but we wouldn't have overhead of checking a lot of constraints that are already checked in the database."	New feature	closed	Database layer (models, ORM)	dev	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
