Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modified a test from r10787 so that the comparison order is reliable.…

… Thanks to Alex Gaynor and Tom Tobin for the report via IRC.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4567b44909347f905f8a5e1409768e9095fbe5b1 1 parent 8c8625b
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/regressiontests/model_formsets_regress/
2  tests/regressiontests/model_formsets_regress/
@@ -69,7 +69,7 @@ def test_formset_over_to_field(self):
form_set = FormSet(data, instance=user)
if form_set.is_valid():
- usersite = UserSite.objects.all().values().order_by('user')
+ usersite = UserSite.objects.all().values().order_by('data')
self.assertEqual(usersite[0]['data'], 11)
self.assertEqual(usersite[0]['user_id'], u'apollo13')
self.assertEqual(usersite[1]['data'], 42)
Please sign in to comment.
Something went wrong with that request. Please try again.