mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +03:00
Updated the README.md example to fix a class reference
Two classnames in the example had "views." prepended to them, which appeared unnecessary.
This commit is contained in:
parent
d7c08222f1
commit
ea91298101
|
@ -62,8 +62,8 @@ Here's our project's root `urls.py` module:
|
|||
|
||||
# Routers provide an easy way of automatically determining the URL conf
|
||||
router = routers.DefaultRouter()
|
||||
router.register(r'users', views.UserViewSet)
|
||||
router.register(r'groups', views.GroupViewSet)
|
||||
router.register(r'users', UserViewSet)
|
||||
router.register(r'groups', GroupViewSet)
|
||||
|
||||
|
||||
# Wire up our API using automatic URL routing.
|
||||
|
|
Loading…
Reference in New Issue
Block a user