Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1282 from loic/ticket6903

Fixed failing test on MySQL since c86a9b6
  • Loading branch information...
commit d9a43545be1af95a13c181c8b178f5631d3a4148 2 parents b0b506b + 7d0c3b9
@aaugustin aaugustin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/admin_views/tests.py
View
4 tests/admin_views/tests.py
@@ -4289,14 +4289,14 @@ def test_add_view(self):
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".
Please sign in to comment.
Something went wrong with that request. Please try again.