Skip to content

Commit

Permalink
swagger fix #768
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik committed May 28, 2023
1 parent 9c6f136 commit 933cd3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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.22.0"
__version__ = "0.22.1"

from pydantic import Field

Expand Down
2 changes: 1 addition & 1 deletion ninja/static/ninja/swagger-ui-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ SwaggerUIBundle({
requestInterceptor: (req) => {
if (swaggerUi.dataset.apiCsrf && swaggerUi.dataset.csrfToken) {
req.headers['X-CSRFToken'] = swaggerUi.dataset.csrfToken
return req;
}
return req;
},
deepLinking: true
})

0 comments on commit 933cd3b

Please sign in to comment.