Skip to content

Commit

Permalink
controller mro figured completely
Browse files Browse the repository at this point in the history
  • Loading branch information
eadwinCode committed Mar 31, 2022
1 parent 7a5568a commit 17c8a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninja_extra/controllers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def __call__(self, cls: Type) -> Type["ControllerBase"]:

self._controller_class = cls
bases = inspect.getmro(cls)
for base_cls in bases:
for base_cls in reversed(bases):
if base_cls not in [ControllerBase, ABC, object]:
compute_api_route_function(base_cls, self)

Expand Down

0 comments on commit 17c8a30

Please sign in to comment.