Update to upgrade docs
This commit is contained in:
parent
e2f3406e89
commit
a692316293
@ -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…
x
Reference in New Issue
Block a user