From d19c3cc9733e24bce9cfb20babfbe7f5105bbb3c Mon Sep 17 00:00:00 2001 From: Tymur Maryokhin Date: Fri, 1 May 2015 17:31:03 +0200 Subject: [PATCH] Remove deprecated `model` attribute reference. Closes #2896. --- docs/api-guide/generic-views.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/generic-views.md b/docs/api-guide/generic-views.md index 3ca77c3ef..e139829b9 100644 --- a/docs/api-guide/generic-views.md +++ b/docs/api-guide/generic-views.md @@ -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') ---