

def test_post_url_continue(self):
    "\n        Ensures that the ModelAdmin.response_add()'s parameter `post_url_continue`\n        controls the redirection after an object has been created.\n        "
    post_data = {
        'name': 'SuperFast',
        '_continue': '1',
    }
    self.assertEqual(Car.objects.count(), 0)
    response = self.client.post(reverse('admin_custom_urls:admin_custom_urls_car_add'), response)
    cars = Car.objects.all()
    self.assertEqual(len(cars), 1)
    self.assertRedirects(response, reverse('admin_custom_urls:admin_custom_urls_car_history', args=[cars[0].pk]))

dataset/ETHPy150Open django/django/tests/admin_custom_urls/tests.py AdminCustomUrlsTest.test_post_url_continue/VarMisuse@56/141 `post_data`->`response`