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.
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 runserverThe above commands will install the dependencies, run the DB migrations, and launch a development server of the example project that uses the provided serializers.
- 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
- 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