﻿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
12667	changeset:12098 introduces choice validation bug at the model level	anonymous	nobody	"Lines 200-202 of django/db/models/fields/__init__.py (introduced in changeset:12098) improperly handle the validation of choice fields.

{{{ 
if self._choices and value:
    if not value in dict(self.choices):
        raise exceptions.ValidationError(self.error_messages['invalid_choice'] % value)
}}}

This block does not account for grouped choices as described in the [http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.Field.choices docs].  
See the valid_value method of the ChoiceField class in /django/forms/fields.py for reference."		closed	Core (Other)	dev		fixed			Accepted	1	0	0	0	0	0
