Remove deprecated model attribute reference. Closes #2896.

This commit is contained in:
Tymur Maryokhin 2015-05-01 17:31:03 +02:00
parent abcd6f2b9e
commit d19c3cc973

View File

@ -51,7 +51,7 @@ For more complex cases you might also want to override various methods on the vi
For very simple cases you might want to pass through any class attributes using the `.as_view()` method. For example, your URLconf might include something like the following entry:
url(r'^/users/', ListCreateAPIView.as_view(model=User), name='user-list')
url(r'^/users/', ListCreateAPIView.as_view(queryset=User.objects.all(), serializer_class=UserSerializer), name='user-list')
---