﻿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
23095	clean of ModelMultipleChoiceField tries to return EmptyQuerySet	pedro.celes123@…	nobody	"In the clean method of the class ModelMultipleChoiceField if the value of the field is not and the field is not required the method will return:
{{{#!python
return self.queryset.none()
# In my version (1.6.5, final) this is on line 1180 of file django/forms/models.py
}}}
However in the release notes it is stated: ""The django.db.models.query.EmptyQuerySet can’t be instantiated any more - it is only usable as a marker class for checking if none() has been called: isinstance(qs.none(), EmptyQuerySet)""

So if I have a form which contains a ModelMultipleChoiceField which is not required and no value is attached to it, in the validation process (more specifically in the clean of said field) the following error will be raised:
{{{#!python
TypeError: EmptyQuerySet can't be instantiated
}}}"	Bug	closed	Forms	1.6	Normal	invalid	forms validation ModelMultipleChoiceField queryset.none()		Unreviewed	0	0	0	0	0	0
