From 2ea3fb3e6386c43f124b542e92b817dbc227c76b Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 5 Jan 2020 10:04:51 +0000 Subject: Removed "Don't do that" from docs and error messages. It's slightly aggressive and doesn't explain itself. --- tests/generic_views/test_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/generic_views') diff --git a/tests/generic_views/test_base.py b/tests/generic_views/test_base.py index c1ad30526e..7aaea3ffa0 100644 --- a/tests/generic_views/test_base.py +++ b/tests/generic_views/test_base.py @@ -143,8 +143,8 @@ class ViewTest(SimpleTestCase): be named like a HTTP method. """ msg = ( - "You tried to pass in the %s method name as a keyword argument " - "to SimpleView(). Don't do that." + 'The method name %s is not accepted as a keyword argument to ' + 'SimpleView().' ) # Check each of the allowed method names for method in SimpleView.http_method_names: -- cgit v1.3