From 8d0f750ec72f6b252443a02334145c85733d8f08 Mon Sep 17 00:00:00 2001 From: Sezer BOZKIR Date: Wed, 4 Mar 2026 16:56:29 +0300 Subject: [PATCH] Add django-pydantic-field and drf-pydantic to third-party packages documentation --- docs/api-guide/serializers.md | 5 +++++ docs/community/third-party-packages.md | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md index 2de38b982f..109f05bf1c 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -1180,6 +1180,10 @@ The [drf-encrypt-content][drf-encrypt-content] package helps you encrypt your da The [drf-shapeless-serializers][drf-shapeless-serializers] package provides dynamic serializer configuration capabilities, allowing runtime field selection, renaming, attribute modification, and nested relationship configuration without creating multiple serializer classes. It helps eliminate serializer boilerplate while providing flexible API responses. +### DRF Pydantic + +The [drf-pydantic][drf-pydantic] package allows you to use Pydantic with Django REST framework for data validation and (de)serialization. If you develop DRF APIs and rely on Pydantic for data validation, this package provides seamless integration between both libraries. + [cite]: https://groups.google.com/d/topic/django-users/sVFaOfQi4wY/discussion [relations]: relations.md @@ -1204,3 +1208,4 @@ The [drf-shapeless-serializers][drf-shapeless-serializers] package provides dyna [drf-writable-nested]: https://github.com/beda-software/drf-writable-nested [drf-encrypt-content]: https://github.com/oguzhancelikarslan/drf-encrypt-content [drf-shapeless-serializers]: https://github.com/khaledsukkar2/drf-shapeless-serializers +[drf-pydantic]: https://github.com/georgebv/drf-pydantic diff --git a/docs/community/third-party-packages.md b/docs/community/third-party-packages.md index e9d8c9fe3f..d1fdd0eea3 100644 --- a/docs/community/third-party-packages.md +++ b/docs/community/third-party-packages.md @@ -79,6 +79,8 @@ To submit new content, [create a pull request][drf-create-pr]. * [django-rest-framework-mongoengine][django-rest-framework-mongoengine] - Serializer class that supports using MongoDB as the storage layer for Django REST framework. * [djangorestframework-gis][djangorestframework-gis] - Geographic add-ons +* [django-pydantic-field][django-pydantic-field] - Provides a way to use Pydantic models as schemas for Django's JSONField with full support for Pydantic v1 and v2, type safety and integration with Django REST Framework. +* [drf-pydantic][drf-pydantic] - Use Pydantic with Django REST framework for data validation and (de)serialization. * [djangorestframework-hstore][djangorestframework-hstore] - Serializer class to support django-hstore DictionaryField model field and its schema-mode feature. * [djangorestframework-jsonapi][djangorestframework-jsonapi] - Provides a parser, renderer, serializers, and other tools to help build an API that is compliant with the jsonapi.org spec. * [html-json-forms][html-json-forms] - Provides an algorithm and serializer to process HTML JSON Form submissions per the (inactive) spec. @@ -272,3 +274,5 @@ To submit new content, [create a pull request][drf-create-pr]. [drf-shapeless-serializers]: https://github.com/khaledsukkar2/drf-shapeless-serializers [django-lisan]: https://github.com/Nabute/django-lisan [axioms-drf-py]: https://github.com/abhishektiwari/axioms-drf-py +[django-pydantic-field]: https://github.com/surenkov/django-pydantic-field +[drf-pydantic]: https://github.com/georgebv/drf-pydantic