You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I'm trying to create a class-based router using the ApiRouter class as a base class, I receive this error at the time of self.add_api_operations:
view_func._ninja_operation = operation # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'method' object has no attribute '_ninja_operation'
When I comment out this line in the source code for django-ninja my project works absolutely correctly.
Describe the bug
When I'm trying to create a class-based router using the ApiRouter class as a base class, I receive this error at the time of self.add_api_operations:
When I comment out this line in the source code for django-ninja my project works absolutely correctly.
Code snippet:
Versions (please complete the following information):
Note you can quickly get this by runninng in
./manage.py shell
this line:The text was updated successfully, but these errors were encountered: