Fix a bug: use query_set instead of get_object
This commit is contained in:
parent
5f73ab254a
commit
e91169d3fe
1 changed files with 1 additions and 1 deletions
|
@ -494,4 +494,4 @@ class ViewTest(BaseTest):
|
||||||
view_obj.namespace, view_obj.config = get_app_instance(request)
|
view_obj.namespace, view_obj.config = get_app_instance(request)
|
||||||
with self.assertRaises(Http404):
|
with self.assertRaises(Http404):
|
||||||
view_obj.kwargs = {'category': 'unknown-category'}
|
view_obj.kwargs = {'category': 'unknown-category'}
|
||||||
category_obj = view_obj.get_object()
|
category_obj = view_obj.get_queryset()
|
||||||
|
|
Loading…
Reference in a new issue