File tree 1 file changed +8
-0
lines changed
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:
316
316
317
317
### Related fields
318
318
319
+ #### ResourceRelatedField
320
+
319
321
Because of the additional structure needed to represent relationships in JSON
320
322
API, this package provides the ` ResourceRelatedField ` for serializers, which
321
323
works similarly to ` PrimaryKeyRelatedField ` . By default,
@@ -427,6 +429,12 @@ class LineItemViewSet(viewsets.ModelViewSet):
427
429
return queryset
428
430
```
429
431
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
+
430
438
### RelationshipView
431
439
` rest_framework_json_api.views.RelationshipView ` is used to build
432
440
relationship views (see the
You can’t perform that action at this time.
0 commit comments