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:
324
324
325
325
### Related fields
326
326
327
+ #### ResourceRelatedField
328
+
327
329
Because of the additional structure needed to represent relationships in JSON
328
330
API, this package provides the ` ResourceRelatedField ` for serializers, which
329
331
works similarly to ` PrimaryKeyRelatedField ` . By default,
@@ -435,6 +437,12 @@ class LineItemViewSet(viewsets.ModelViewSet):
435
437
return queryset
436
438
```
437
439
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
+
438
446
### RelationshipView
439
447
` rest_framework_json_api.views.RelationshipView ` is used to build
440
448
relationship views (see the
You can’t perform that action at this time.
0 commit comments