Skip to content

Commit a5ad361

Browse files
committed
code refactor
1 parent f0e0155 commit a5ad361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ninja_extra/controllers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def add_operation_from_route_function(self, route_function: RouteFunction) -> No
371371
f"endpoint={get_function_name(route_function.route.view_func)}"
372372
)
373373

374-
self.add_api_operation(
374+
route_function.operation = self.add_api_operation( # type: ignore
375375
view_func=route_function.as_view, **route_function.route.route_params.dict()
376376
)
377377

0 commit comments

Comments
 (0)