'Test that ModelMultipleChoiceField does O(1) queries instead of
O(n) (#10156).'

def test_model_multiple_choice_number_of_queries(self):

    persons = [Person.objects.create(name=('Person    %s' % i)) for i in range(30)]
    f = forms.ModelMultipleChoiceField(queryset=Person.objects.all())
    self.assertNumQueries(1, f.clean, [p.pk for p in persons[1:11:2]])
