aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorTom Christie2012-10-09 17:36:03 +0100
committerTom Christie2012-10-09 17:36:03 +0100
commitb0c370dd2b42db9074c2580ca4a48d7dda088abf (patch)
treebe87b0be4eb4baf665d20d55d925ceeec8b5a122 /docs
parent52a2ff8f77dc22a65e6f5780de8183f261472342 (diff)
downloaddjango-rest-framework-b0c370dd2b42db9074c2580ca4a48d7dda088abf.tar.bz2
Fixed couple of incorrect imports in the docs
Diffstat (limited to 'docs')
-rw-r--r--docs/api-guide/reverse.md2
-rw-r--r--docs/api-guide/serializers.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/reverse.md b/docs/api-guide/reverse.md
index 82cadffc..12346eb4 100644
--- a/docs/api-guide/reverse.md
+++ b/docs/api-guide/reverse.md
@@ -28,7 +28,7 @@ Has the same behavior as [`django.core.urlresolvers.reverse`][reverse], except t
You should **include the request as a keyword argument** to the function, for example:
import datetime
- from rest_framework.utils import reverse
+ from rest_framework.reverse import reverse
from rest_framework.views import APIView
class APIRootView(APIView):
diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md
index 4ddc6e0a..fff03241 100644
--- a/docs/api-guide/serializers.md
+++ b/docs/api-guide/serializers.md
@@ -94,7 +94,7 @@ The `Serializer` class is itself a type of `Field`, and can be used to represent
class CommentSerializer(serializers.Serializer):
- user = serializers.UserSerializer()
+ user = UserSerializer()
title = serializers.CharField()
content = serializers.CharField(max_length=200)
created = serializers.DateTimeField()