Update to upgrade docs
This commit is contained in:
parent
e2f3406e89
commit
a692316293
1 changed files with 3 additions and 1 deletions
|
|
@ -126,7 +126,9 @@ to `.exclude()`. Chaining `.only()` calls will increase the fields required::
|
|||
|
||||
# New code
|
||||
Animal.objects().only('name')
|
||||
Animal.objects().only(['name']).only('order') # Would return `name` and `order`
|
||||
|
||||
# Note:
|
||||
Animal.objects().only(['name']).only('order') # Now returns `name` *and* `order`
|
||||
|
||||
|
||||
Client
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue