mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +03:00
Fixed couple of incorrect imports in the docs
This commit is contained in:
parent
52a2ff8f77
commit
b0c370dd2b
|
@ -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):
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user