mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-17 03:51:03 +03:00
Fix incorrect example
This commit is contained in:
parent
8d83ff8e6c
commit
13a3c993ab
|
@ -92,7 +92,8 @@ May be overridden to provide dynamic behavior such as returning a queryset that
|
|||
For example:
|
||||
|
||||
def get_queryset(self):
|
||||
return self.user.accounts.all()
|
||||
user = self.request.user
|
||||
return user.accounts.all()
|
||||
|
||||
#### `get_object(self)`
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user