Skip to content
Browse files

Fixed the ModelMultipleChoiceFieldTests to pass even on DB backends t…

…hat do not reuse pk values after rollback.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 78f0ab7 commit 152ae52a6dd89fd7ff19ec8d6ea0c78c5ecc67a8 @kmtracey kmtracey committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/regressiontests/model_forms_regress/
3 tests/regressiontests/model_forms_regress/
@@ -37,7 +37,8 @@ def my_validator(value):
f = forms.ModelMultipleChoiceField(queryset=Person.objects.all(),
- f.clean([1,2])
+ f.clean([ for p in Person.objects.all()[8:9]])
class TripleForm(forms.ModelForm):

0 comments on commit 152ae52

Please sign in to comment.
Something went wrong with that request. Please try again.