diff --git a/djadmin2/templates/admin2/bootstrap/delete_selected_confirmation.html b/djadmin2/templates/admin2/bootstrap/delete_selected_confirmation.html index 72f1452..111d8c2 100644 --- a/djadmin2/templates/admin2/bootstrap/delete_selected_confirmation.html +++ b/djadmin2/templates/admin2/bootstrap/delete_selected_confirmation.html @@ -15,7 +15,7 @@ {% for item in queryset %} - + {% endfor %} diff --git a/djadmin2/templates/admin2/bootstrap/model_list.html b/djadmin2/templates/admin2/bootstrap/model_list.html index 1f4ca99..d8bb933 100644 --- a/djadmin2/templates/admin2/bootstrap/model_list.html +++ b/djadmin2/templates/admin2/bootstrap/model_list.html @@ -38,7 +38,7 @@
{% for obj in object_list %}Are you sure you want to delete the selected post?
', response.content) def test_delete_selected_post_confirmation(self): post = Post.objects.create(title="a_post_title", body="body") - params = {'action': 'delete_selected', 'selected_model_id': str(post.id), 'confirmed': 'yes'} + params = {'action': 'delete_selected', 'selected_model_pk': str(post.pk), 'confirmed': 'yes'} response = self.client.post(reverse("admin2:blog_post_index"), params) self.assertRedirects(response, reverse("admin2:blog_post_index")) @@ -141,7 +141,7 @@ class PostDeleteActionTest(BaseIntegrationTest): p2 = Post.objects.create(title="A Post Title", body="body") post_data = { 'action': 'delete_selected', - 'selected_model_id': [p1.id, p2.id] + 'selected_model_pk': [p1.pk, p2.pk] } response = self.client.post(reverse("admin2:blog_post_index"), post_data) @@ -153,7 +153,7 @@ class PostDeleteActionTest(BaseIntegrationTest): p2 = Post.objects.create(title="A Post Title", body="body") post_data = { 'action': 'delete_selected', - 'selected_model_id': [p1.id, p2.id], + 'selected_model_pk': [p1.pk, p2.pk], 'confirmed': 'yes' } response = self.client.post(reverse("admin2:blog_post_index"),