mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 10:03:57 +03:00
Add missing comma to generic view example.
This commit is contained in:
parent
9e9233f87f
commit
3802442c89
|
@ -40,7 +40,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 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 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')
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user