Skip to content
Browse files

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

…ckends that do not reuse pk values after rollback.

r14928 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 5e6c541 commit 6c357cc9bbea8ecf9e1241058d0e9da210bcfd33 @kmtracey kmtracey committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/regressiontests/model_forms_regress/
3 tests/regressiontests/model_forms_regress/
@@ -44,7 +44,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 6c357cc

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