From e91169d3fef99f1a76c7a2b5f2e852e8927cbb89 Mon Sep 17 00:00:00 2001 From: PCoder Date: Tue, 2 Jan 2018 00:45:02 +0100 Subject: [PATCH] Fix a bug: use query_set instead of get_object --- tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_views.py b/tests/test_views.py index 785d7ed..c04ad09 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -494,4 +494,4 @@ class ViewTest(BaseTest): view_obj.namespace, view_obj.config = get_app_instance(request) with self.assertRaises(Http404): view_obj.kwargs = {'category': 'unknown-category'} - category_obj = view_obj.get_object() + category_obj = view_obj.get_queryset()