Skip to content

Commit 11a4a02

Browse files
committed
code refactor
1 parent a5ad361 commit 11a4a02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ninja_extra/controllers/route/route_functions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
from .context import RouteContext
1212

1313
if TYPE_CHECKING:
14+
from ninja_extra.operation import ControllerOperation
15+
1416
from ...controllers.base import APIController, ControllerBase
1517
from ...controllers.route import Route
1618

@@ -28,6 +30,7 @@ def __init__(
2830
self, route: "Route", api_controller: Optional["APIController"] = None
2931
):
3032
self.route = route
33+
self.operation: Optional["ControllerOperation"] = None
3134
self.has_request_param = False
3235
self.api_controller = api_controller
3336
self.as_view = wraps(route.view_func)(self.get_view_function())

0 commit comments

Comments
 (0)