Skip to content

Commit 7ba5d02

Browse files
authored
Merge pull request #154 from uriyyo/bugfix/json-api-docs
Update docs for page customisation
2 parents 27eaf50 + d14adda commit 7ba5d02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/customization.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class JsonApiPage(Page[T], Generic[T]):
5555
"""JSON:API 1.0 specification says that result key should be a `data`."""
5656

5757
class Config:
58+
allow_population_by_field_name = True
5859
fields = {"items": {"alias": "data"}}
5960
```
6061

0 commit comments

Comments
 (0)