Fix couple of incorrect imports in the docs

This commit is contained in:
Tom Christie 2012-10-09 17:36:27 +01:00
parent 63f9fe8062
commit 216e9bfe95
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@
<p>Has the same behavior as <a href="https://docs.djangoproject.com/en/dev/topics/http/urls/#reverse"><code>django.core.urlresolvers.reverse</code></a>, except that it returns a fully qualified URL, using the request to determine the host and port.</p>
<p>You should <strong>include the request as a keyword argument</strong> to the function, for example:</p>
<pre class="prettyprint lang-py"><code>import datetime
from rest_framework.utils import reverse
from rest_framework.reverse import reverse
from rest_framework.views import APIView
class APIRootView(APIView):

View File

@ -206,7 +206,7 @@ where some of the attributes of an object might not be simple datatypes such as
return User(**attrs)
class CommentSerializer(serializers.Serializer):
user = serializers.UserSerializer()
user = UserSerializer()
title = serializers.CharField()
content = serializers.CharField(max_length=200)
created = serializers.DateTimeField()