Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.0.X] Modified a test from r10787 so that the comparison order is r…

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

Merge of r10828 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e00173806361ce0756bea8a2e2efaac773f56569 1 parent 3cd3df8
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.