aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorEyePulp2013-05-07 11:01:54 -0500
committerEyePulp2013-05-07 11:01:54 -0500
commitea9129810185902b9cf857baa33f02c277fe3192 (patch)
tree80d57967576cf8524cdf1cd42e407ba189e00b0e /README.md
parentd7c08222f14389b4d61e5ca9032c49b8b917d251 (diff)
downloaddjango-rest-framework-ea9129810185902b9cf857baa33f02c277fe3192.tar.bz2
Updated the README.md example to fix a class reference
Two classnames in the example had "views." prepended to them, which appeared unnecessary.
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index f665481a..5d1631d4 100644
--- a/README.md
+++ b/README.md
@@ -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.