We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78b9ce9 commit 8358737Copy full SHA for 8358737
ninja_extra/controllers/model_controller_builder.py
@@ -198,7 +198,7 @@ def register_model_routes(self) -> None:
198
action_registration = self.__dict__.get(
199
f"_register_{action}_endpoint", None
200
)
201
- if not f"_register_{action}_endpoint":
+ if not action_registration:
202
raise Exception(
203
f"`{action}` action in `class[{self._base_cls.__name__}]` "
204
f"is not recognized as ModelController action"
0 commit comments