Skip to content

Commit fc98d35

Browse files
Update relations.md (#9063)
add rest-framework-gm2m-relations package that provides read/write serialization for generic many to many field
1 parent 17e9560 commit fc98d35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/api-guide/relations.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,12 +628,16 @@ The [drf-nested-routers package][drf-nested-routers] provides routers and relati
628628

629629
The [rest-framework-generic-relations][drf-nested-relations] library provides read/write serialization for generic foreign keys.
630630

631+
The [rest-framework-gm2m-relations][drf-gm2m-relations] library provides read/write serialization for [django-gm2m][django-gm2m-field].
632+
631633
[cite]: http://users.ece.utexas.edu/~adnan/pike.html
632634
[reverse-relationships]: https://docs.djangoproject.com/en/stable/topics/db/queries/#following-relationships-backward
633635
[routers]: https://www.django-rest-framework.org/api-guide/routers#defaultrouter
634636
[generic-relations]: https://docs.djangoproject.com/en/stable/ref/contrib/contenttypes/#id1
635637
[drf-nested-routers]: https://github.com/alanjds/drf-nested-routers
636638
[drf-nested-relations]: https://github.com/Ian-Foote/rest-framework-generic-relations
639+
[drf-gm2m-relations]: https://github.com/mojtabaakbari221b/rest-framework-gm2m-relations
640+
[django-gm2m-field]: https://github.com/tkhyn/django-gm2m
637641
[django-intermediary-manytomany]: https://docs.djangoproject.com/en/stable/topics/db/models/#intermediary-manytomany
638642
[dealing-with-nested-objects]: https://www.django-rest-framework.org/api-guide/serializers/#dealing-with-nested-objects
639643
[to_internal_value]: https://www.django-rest-framework.org/api-guide/serializers/#to_internal_valueself-data

0 commit comments

Comments
 (0)