Skip to content

Commit 52e0f3a

Browse files
berkerpeksagtomchristie
authored andcommitted
Fix indentation of code example in chapter 7 (#5329)
1 parent be7657c commit 52e0f3a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/tutorial/7-schemas-and-client-libraries.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ API schema.
3636
We can now include a schema for our API, by including an autogenerated schema
3737
view in our URL configuration.
3838

39-
```
40-
from rest_framework.schemas import get_schema_view
39+
```python
40+
from rest_framework.schemas import get_schema_view
4141

42-
schema_view = get_schema_view(title='Pastebin API')
42+
schema_view = get_schema_view(title='Pastebin API')
4343

44-
urlpatterns = [
45-
   url(r'^schema/$', schema_view),
46-
...
47-
]
44+
urlpatterns = [
45+
   url(r'^schema/$', schema_view),
46+
...
47+
]
4848
```
4949

5050
If you visit the API root endpoint in a browser you should now see `corejson`

0 commit comments

Comments
 (0)