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
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23095>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
I'm having a little trouble understanding how to trigger this error. Could
you write a test case for Django's test suite that demonstrates it?
--
Ticket URL: <https://code.djangoproject.com/ticket/23095#comment:1>
Comment (by pedro.celes123@…):
Sorry for the inconvenience, due to a monkey patch used in my company I
was fooled to think the problem was with django. After more thorough tests
we discovered the problem was with us.
Really sorry.
--
Ticket URL: <https://code.djangoproject.com/ticket/23095#comment:2>
* status: new => closed
* resolution: => invalid
Comment:
No problem, thanks for following up.
--
Ticket URL: <https://code.djangoproject.com/ticket/23095#comment:3>