mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Merge pull request #6813 from dalvtor/fix-schemas-docs
Fixes import in the schemas documentation
This commit is contained in:
commit
4991e4dbbe
|
@ -51,7 +51,7 @@ To route a `SchemaView`, use the `get_schema_view()` helper.
|
||||||
In `urls.py`:
|
In `urls.py`:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from rest_framework.schemas import get_schema_view()
|
from rest_framework.schemas import get_schema_view
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# ...
|
# ...
|
||||||
|
|
|
@ -67,7 +67,7 @@ shortcut.
|
||||||
In your `urls.py`:
|
In your `urls.py`:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from rest_framework.schemas import get_schema_view()
|
from rest_framework.schemas import get_schema_view
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# ...
|
# ...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user