Skip to content

Commit

Permalink
Include to nested urls fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik committed Dec 25, 2020
1 parent 4bc20c0 commit ce52105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ninja/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Django Ninja - Fast Django REST framework"""

__version__ = "0.9.6"
__version__ = "0.9.7"

from ninja.main import NinjaAPI
from ninja.params import Query, Path, Header, Cookie, Body, Form
Expand Down
4 changes: 1 addition & 3 deletions ninja/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,8 @@ def urls(self):
return (
self._get_urls(),
"ninja",
# under nested namespace,
# wo only need last part for register
# use full part to `reverse`
self.urls_namespace.split(":")[-1],
# ^ if api included into nested urls, we only care about last bit here
)

def _get_urls(self):
Expand Down

0 comments on commit ce52105

Please sign in to comment.