﻿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
20179	Proposal: Execute run_validators of the field in pre_save	vini.gracindo@…	Vinnicyus Gracindo	"My proposal is execute the function run_validators in pre_save of a model. Actually, the framework execute this routine in the clean function.

When we created a validators, we hope with the validator is executed. If we create an object through the curl, via webservice or shell the validators are not executed.

Example:
{{{
class MyObject(models.Model):
    field = models.FloatField(validators = [MinValueValidator(0.0), MaxValueValidator(5.0)])
}}}

Shell:
{{{
MyObject.objects.create(field=6.0) #No validation happens.
}}}

Actually, the validation occur only in frontend."	Cleanup/optimization	closed	Database layer (models, ORM)	1.5	Normal	invalid	models, validators		Unreviewed	0	0	0	0	0	0
