Skip to content

Commit 5bf338e

Browse files
geryogamadamchainz
andauthored
Update README.md (#8592)
* Update README.md * revert ViewSet change Co-authored-by: Adam Johnson <[email protected]>
1 parent 72e66e4 commit 5bf338e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ Startup up a new project like so...
9090
Now edit the `example/urls.py` module in your project:
9191

9292
```python
93-
from django.urls import path, include
9493
from django.contrib.auth.models import User
95-
from rest_framework import serializers, viewsets, routers
94+
from django.urls import include, path
95+
from rest_framework import routers, serializers, viewsets
96+
9697

9798
# Serializers define the API representation.
9899
class UserSerializer(serializers.HyperlinkedModelSerializer):
@@ -111,7 +112,6 @@ class UserViewSet(viewsets.ModelViewSet):
111112
router = routers.DefaultRouter()
112113
router.register(r'users', UserViewSet)
113114

114-
115115
# Wire up our API using automatic URL routing.
116116
# Additionally, we include login URLs for the browsable API.
117117
urlpatterns = [

0 commit comments

Comments
 (0)