mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 11:30:12 +03:00
Add model attribute in docs
This commit is contained in:
parent
761e66ffdd
commit
e7cca54ff3
|
@ -187,6 +187,7 @@ Note that you can use any of the standard attributes or method overrides provide
|
||||||
A simple ViewSet for viewing and editing the accounts
|
A simple ViewSet for viewing and editing the accounts
|
||||||
associated with the user.
|
associated with the user.
|
||||||
"""
|
"""
|
||||||
|
model = Account
|
||||||
serializer_class = AccountSerializer
|
serializer_class = AccountSerializer
|
||||||
permission_classes = [IsAccountAdminOrReadOnly]
|
permission_classes = [IsAccountAdminOrReadOnly]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user