Skip to content

HTTPS clone URL

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: http://code.djangoproject.com/svn/django/trunk@10828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4567b44909347f905f8a5e1409768e9095fbe5b1 1 parent 8c8625b
Russell Keith-Magee freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/regressiontests/model_formsets_regress/tests.py
2  tests/regressiontests/model_formsets_regress/tests.py
View
@@ -69,7 +69,7 @@ def test_formset_over_to_field(self):
form_set = FormSet(data, instance=user)
if form_set.is_valid():
form_set.save()
- 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.