⚠️ Work In Progress ⚠️
Writable Nested Serializers with Browsable API Forms
This plugin is intended to provide writable nested serializers (similar to the recommended plugin from DRF documentation) that bring their own forms for the Browsable API renderer.
Try it out
This project's dependencies are managed using poetry
git clone https://github.com/pcouy/drf-nested-browsable
cd drf-nested-browsable
poetry install
cd example
poetry shell
python manage.py migrate
python manage.py runserver
The above commands will install the dependencies, run the DB migrations, and launch a development server of the example project that uses the provided serializers.
Current state of the project
Done
- Ability to write to a reverse
ForeignKeyrelationship using serializerMetaclass - Dynamic form for
WritableNestedListSerializerthat allows adding and removing children from the Browsable API - Arbitrary nesting depth
- Dynamically removing the parent field from serializers when used as an inner serializer
- Basic example
- Support
RecursiveFieldfromdjangorestframework-recursive
To do
- Write documentation / Auto-generate it from the docstrings (pdoc ?)
- Write tests/specs (from example ?)
- Better form design
- Add
ManyToManyto example (and test it) - Consider database schema constrains :
- Look into what
drf-writable-nesteddoes with uniqueness - When the foreign key can be
null, show a multiple select field for attaching orphan instances to a parent instance - Show a multiple select field for
ManyToManyrelationships
- Look into what
Metadata
Release files for drf-nested-browsable 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| drf_nested_browsable-0.4.1.tar.gz | 6.3 kB | Without provenance | Details for drf_nested_browsable-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| drf_nested_browsable-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for drf_nested_browsable-0.4.1-py3-none-any.whl |
Total release size: 13.8 kB
Release files / drf_nested_browsable-0.4.1.tar.gz
| Download URL | drf_nested_browsable-0.4.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d90322b2e135dcb035c16bb5cef6fa79ed0dab8c83d402d7cc342e6bf49b5c4
|
|
BLAKE2b-256 checksum How to use checksums |
f072e4f7e510465123e2d585b594a2d9cbaadcb4f76002539c8d6f3b9c3012ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.8 Linux/6.6.26-1-MANJARO
|
Release files / drf_nested_browsable-0.4.1-py3-none-any.whl
| Download URL | drf_nested_browsable-0.4.1-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ae096f3bf746cd99252713e109d374bc429e78cf395dd7321d62188157e1165
|
|
BLAKE2b-256 checksum How to use checksums |
94b40cbfd1fddcf712321d4e8c05f042fefe2120d9d62150f542dfdeb2afcc6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.8 Linux/6.6.26-1-MANJARO
|
Security for drf-nested-browsable 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.