Commit 0724c557 by Carlton Gibson

Merge pull request #1792 from lnhubbell/patch-1

Update generic-views.md
parents c29c75da 19076510
...@@ -49,7 +49,7 @@ For more complex cases you might also want to override various methods on the vi ...@@ -49,7 +49,7 @@ For more complex cases you might also want to override various methods on the vi
serializer = UserSerializer(queryset, many=True) serializer = UserSerializer(queryset, many=True)
return Response(serializer.data) return Response(serializer.data)
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 the following entry. 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(model=User), name='user-list')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment