1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed admin_views IntegrityError test failure.

Regression in 38a5a23c32.
This commit is contained in:
Tim Graham 2017-06-02 14:39:49 -04:00
parent 38a5a23c32
commit 0841a31baf

View File

@ -3236,10 +3236,9 @@ class AdminActionsTest(TestCase):
the objects selected for deletion are rendered without separators.
Refs #14895.
"""
new_pk = 9999
ExternalSubscriber.objects.filter(id=self.s1.id).update(id=new_pk)
s = ExternalSubscriber.objects.create(id=9999)
action_data = {
ACTION_CHECKBOX_NAME: [new_pk, self.s2.pk],
ACTION_CHECKBOX_NAME: [s.pk, self.s2.pk],
'action': 'delete_selected',
'index': 0,
}