From 7d0c3b9b2648ca71e98f81a16cec18a17d73dd9a Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Wed, 19 Jun 2013 16:13:43 +0700 Subject: [PATCH] Fixed MySQL failing test introduced by c86a9b6 --- tests/admin_views/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 9bb282b0231..adbee570cc1 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -4289,14 +4289,14 @@ class AdminKeepChangeListFiltersTests(TestCase): post_data['_save'] = 1 response = self.client.post(self.get_add_url(), data=post_data) - self.assertRedirects(response, self.get_change_url(self.get_sample_user_id() + 1)) + self.assertRedirects(response, self.get_change_url(User.objects.latest('pk').pk)) post_data.pop('_save') # Test redirect on "Save and continue". post_data['username'] = 'dummy2' post_data['_continue'] = 1 response = self.client.post(self.get_add_url(), data=post_data) - self.assertRedirects(response, self.get_change_url(self.get_sample_user_id() + 2)) + self.assertRedirects(response, self.get_change_url(User.objects.latest('pk').pk)) post_data.pop('_continue') # Test redirect on "Save and add new".