File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -324,6 +324,8 @@ When set to pluralize:
324324
325325### Related fields
326326
327+ #### ResourceRelatedField
328+
327329Because of the additional structure needed to represent relationships in JSON
328330API, this package provides the ` ResourceRelatedField ` for serializers, which
329331works similarly to ` PrimaryKeyRelatedField ` . By default,
@@ -435,6 +437,12 @@ class LineItemViewSet(viewsets.ModelViewSet):
435437 return queryset
436438```
437439
440+ #### HyperlinkedRelatedField
441+
442+ In order to improve performance by saving some sql queries we can skip ` data `
443+ key. Use ` HyperlinkedRelatedField ` . It works same as ` ResourceRelatedField `
444+ but just skips ` data ` calculating.
445+
438446### RelationshipView
439447` rest_framework_json_api.views.RelationshipView ` is used to build
440448relationship views (see the
You can’t perform that action at this time.
0 commit comments