Loading tests/admin_views/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -2068,7 +2068,7 @@ class AdminViewDeletedObjectsTest(TestCase): which says the deletion is prohibited. """ q = Question.objects.create(question='Why?') a = Answer.objects.create(question=q, answer='Because.') Answer.objects.create(question=q, answer='Because.') response = self.client.post(reverse('admin:admin_views_question_delete', args=(q.pk,)), {'post': 'yes'}) self.assertEqual(Question.objects.count(), 1) Loading Loading
tests/admin_views/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -2068,7 +2068,7 @@ class AdminViewDeletedObjectsTest(TestCase): which says the deletion is prohibited. """ q = Question.objects.create(question='Why?') a = Answer.objects.create(question=q, answer='Because.') Answer.objects.create(question=q, answer='Because.') response = self.client.post(reverse('admin:admin_views_question_delete', args=(q.pk,)), {'post': 'yes'}) self.assertEqual(Question.objects.count(), 1) Loading