﻿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
18724	Model field validation for IntegerFields does not validate 0 against choices	Brendan MacDonell	nobody	"If a model has an {{{ IntegerField }}} with a limited set of choices, the choices will not be checked if the model has the value zero. For instance, given the following model:

{{{
class M(models.Model):
    number = models.IntegerField(choices=((1, 1),))
}}}

{{{ M(number=2).full_clean() }}} will raise a {{{ ValidationError }}}, while {{{ M(number=0).full_clean() }}} will not."	Bug	closed	Database layer (models, ORM)	1.4	Normal	fixed			Accepted	1	0	0	0	0	0
