diff --git a/examples/miniapps/django/README.rst b/examples/miniapps/django/README.rst index 114f77cb..2ff42581 100644 --- a/examples/miniapps/django/README.rst +++ b/examples/miniapps/django/README.rst @@ -108,6 +108,6 @@ The output should be something like: web/apps.py 7 0 100% web/tests.py 28 0 100% web/urls.py 3 0 100% - web/views.py 11 0 100% + web/views.py 12 0 100% --------------------------------------------------- - TOTAL 120 10 92% + TOTAL 121 10 92% diff --git a/examples/miniapps/django/web/views.py b/examples/miniapps/django/web/views.py index 6a48217d..6d8f11f5 100644 --- a/examples/miniapps/django/web/views.py +++ b/examples/miniapps/django/web/views.py @@ -4,12 +4,13 @@ from typing import List from django.http import HttpRequest, HttpResponse from django.shortcuts import render -from dependency_injector.wiring import Provide +from dependency_injector.wiring import inject, Provide from githubnavigator.containers import Container from githubnavigator.services import SearchService +@inject def index( request: HttpRequest, search_service: SearchService = Provide[Container.search_service],