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 @@ -316,6 +316,8 @@ When set to pluralize:
316316
317317### Related fields
318318
319+ #### ResourceRelatedField
320+
319321Because of the additional structure needed to represent relationships in JSON
320322API, this package provides the ` ResourceRelatedField ` for serializers, which
321323works similarly to ` PrimaryKeyRelatedField ` . By default,
@@ -427,6 +429,12 @@ class LineItemViewSet(viewsets.ModelViewSet):
427429 return queryset
428430```
429431
432+ #### HyperLinkedRelatedField
433+
434+ In order to improve performance by saving some sql queries we can skip ` data `
435+ key. Use ` HyperLinkedRelatedField ` . It works same as ` ResourceRelatedField `
436+ but just skips ` data ` calculating.
437+
430438### RelationshipView
431439` rest_framework_json_api.views.RelationshipView ` is used to build
432440relationship views (see the
You can’t perform that action at this time.
0 commit comments