Skip to content

Commit 8358737

Browse files
committed
fixed typo error
1 parent 78b9ce9 commit 8358737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ninja_extra/controllers/model_controller_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def register_model_routes(self) -> None:
198198
action_registration = self.__dict__.get(
199199
f"_register_{action}_endpoint", None
200200
)
201-
if not f"_register_{action}_endpoint":
201+
if not action_registration:
202202
raise Exception(
203203
f"`{action}` action in `class[{self._base_cls.__name__}]` "
204204
f"is not recognized as ModelController action"

0 commit comments

Comments
 (0)