Commit 6c357cc9 authored by Karen Tracey's avatar Karen Tracey
Browse files

[1.2.X] Fixed the ModelMultipleChoiceFieldTests to pass even on DB backends...

[1.2.X] Fixed the ModelMultipleChoiceFieldTests to pass even on DB backends that do not reuse pk values after rollback. 

r14928 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14929 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 5e6c5418
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -44,7 +44,8 @@ class ModelMultipleChoiceFieldTests(TestCase):

        f = forms.ModelMultipleChoiceField(queryset=Person.objects.all(),
                                           validators=[my_validator])
        f.clean([1,2])

        f.clean([p.pk for p in Person.objects.all()[8:9]])
        self.assertTrue(self._validator_run)

class TripleForm(forms.ModelForm):