{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/2"}],"enrichment":{"capability":"Provides type-safe Pydantic model schemas for Django JSONFields with automatic validation, supporting both Pydantic v1 and v2, and integrating with Django Forms, Admin, and Django REST Framework.","skillfed_tags":["django-integration","pydantic-schemas","type-safety"],"use_cases":["Store complex nested configuration objects in a Django model with automatic Pydantic validation and type safety.","Build Django REST Framework APIs where request/response bodies are strongly typed Pydantic models with auto-generated OpenAPI docs.","Migrate from raw JSON storage to typed schemas without rewriting your entire data layer.","Use Django Admin to edit JSON data with form validation powered by Pydantic field constraints.","Define forward-referenced schemas that resolve lazily, allowing circular dependencies between models."],"what_it_does":"django-pydantic-field bridges Pydantic and Django by allowing you to use Pydantic models as schemas for Django's JSONField. Instead of storing raw JSON and manually validating it, you define a Pydantic model and attach it to a SchemaField\u2014the package then automatically parses incoming JSON into typed Pydantic instances and validates them against your schema. It handles both Pydantic v1 and v2 through a unified API, so you don't need to rewrite code if you upgrade.\n\nThe package integrates deeply with Django's ecosystem: it works with Django Forms and the Admin interface for validation and editing, provides typed serializers and parsers for Django REST Framework with automatic OpenAPI schema generation, and supports forward references for schemas defined later in your code. Type checkers like mypy and pyright can infer the correct types for your model fields, making it safe to use in statically typed codebases.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real friction point\u2014type-safe JSON storage in Django. It's particularly valuable if you use Django REST Framework and need automatic schema generation, or if you want static type checking on JSON data. The dual Pydantic v1/v2 support makes it safe to adopt even if your environment is in transition."},"id":"django-pydantic-field","links":{"html":"https://skillfed.io/packages/django-pydantic-field","md":"https://skillfed.io/packages/django-pydantic-field.md","pypi":"https://pypi.org/project/django-pydantic-field/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-22","license_spdx":"MIT","license_treatment":"permissive","name":"django-pydantic-field","python_support":"supports_current","summary":"Type-Safe Pydantic Schemas for Django JSONFields"},"popularity":{"monthly_downloads":1560320,"position":3760,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.5.4"}
