Polymorphic serializers without models
Project description
DRF-polymorphic
- Version:
2.1.1
- Source:
- Keywords:
django, rest, polymorphic
Polymorphic support for DRF without Django models
Overview
Polymorphism happens when a resource takes a certain shape depending on the type of the resource. Usually they have a common base type. The exact type/shape is not statically known, but depends on the run-time values.
Unlike django-rest-polymorphic this implementation doesn’t require the usage of django-polymorphic model classes and can be used even without django models.
The implementations also includes the extension for DRF spectacular schema generation.
See the documentation for getting started and usage examples.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file drf_polymorphic-2.1.1.tar.gz.
File metadata
- Download URL: drf_polymorphic-2.1.1.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ace57de8c4a930d07e535b20f2e7fa495e0b9fd2500eb8d5a96fcf9bb73effe8
|
|
| MD5 |
64038f7b4de297d906761fc0eaa28296
|
|
| BLAKE2b-256 |
dacb9dc9da39a0cc9c078b219c190df98f2e32300e2ab72138a1013a76271d86
|
File details
Details for the file drf_polymorphic-2.1.1-py3-none-any.whl.
File metadata
- Download URL: drf_polymorphic-2.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf81ad22d26f4b01f146f731e9d2705952ec469cb3499dd9c83c6cd5bbe539c4
|
|
| MD5 |
abb4771d3459de31f22b811f30083c7b
|
|
| BLAKE2b-256 |
d026f566b271bd12a83cdd87a186eef883b2cd5c7fe73c97409dfe42fcd1b866
|