Skip to content

Commit

Permalink
fix: fixing errors in code example for custom docs viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeyes committed Dec 20, 2023
1 parent 6f27eee commit 7fea9ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/guides/api-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ In a Django template, for example:
To create your own view for OpenaAPI - create a class inherited from DocsBase and overwrite `render_page`` method:

```python
form ninja.openapi.docs import DocsBase
from ninja.openapi.docs import DocsBase

class MyDocsViewer(DocsBase)
class MyDocsViewer(DocsBase):
def render_page(self, request, api):
... # return http response

Expand Down

0 comments on commit 7fea9ab

Please sign in to comment.