We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 876892f commit 95e7ed4Copy full SHA for 95e7ed4
AUTHORS
@@ -23,3 +23,4 @@ Mohammed Ali Zubair <mazg1493@gmail.com>
23
Jason Housley <housleyjk@gmail.com>
24
Beni Keller <beni@matraxi.ch>
25
Stas S. <stas@nerd.ro>
26
+Nathanael Gordon <nathanael.l.gordon@gmail.com>
docs/usage.md
@@ -789,8 +789,9 @@ that are related to the primary resource.
789
790
To make a Compound Document,
791
you need to modify your `ModelSerializer`.
792
-The two required additions are `included_resources`
793
-and `included_serializers`.
+`included_serializers` is required to inform DJA of what and how you would like
+to include.
794
+`included_resources` tells DJA what you want to include by default.
795
796
For example,
797
suppose you are making an app to go on quests,
@@ -818,9 +819,6 @@ class QuestSerializer(serializers.ModelSerializer):
818
819
included_resources = ['knight']
820
```
821
-`included_resources` informs DJA of **what** you would like to include.
822
-`included_serializers` tells DJA **how** you want to include it.
823
-
824
#### Performance improvements
825
826
Be aware that using included resources without any form of prefetching **WILL HURT PERFORMANCE** as it will introduce m\*(n+1) queries.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments