mirror of https://github.com/django/django.git
Merge pull request #1282 from loic/ticket6903
Fixed failing test on MySQL since c86a9b6
This commit is contained in:
commit
d9a43545be
|
@ -4289,14 +4289,14 @@ class AdminKeepChangeListFiltersTests(TestCase):
|
||||||
|
|
||||||
post_data['_save'] = 1
|
post_data['_save'] = 1
|
||||||
response = self.client.post(self.get_add_url(), data=post_data)
|
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')
|
post_data.pop('_save')
|
||||||
|
|
||||||
# Test redirect on "Save and continue".
|
# Test redirect on "Save and continue".
|
||||||
post_data['username'] = 'dummy2'
|
post_data['username'] = 'dummy2'
|
||||||
post_data['_continue'] = 1
|
post_data['_continue'] = 1
|
||||||
response = self.client.post(self.get_add_url(), data=post_data)
|
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')
|
post_data.pop('_continue')
|
||||||
|
|
||||||
# Test redirect on "Save and add new".
|
# Test redirect on "Save and add new".
|
||||||
|
|
Loading…
Reference in New Issue