mirror of
https://github.com/django/django.git
synced 2025-03-26 01:00:46 +00:00
Removed unused variable.
This commit is contained in:
parent
c41737dc00
commit
4b510c3889
@ -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…
x
Reference in New Issue
Block a user