Skip to content

Django Ninja Example that shows what one has to do in order to get create/update (POST/PUT) working for M2M fields.

Notifications You must be signed in to change notification settings

ihelmer07/django-ninja-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo explaining major drawback of the super awesome django-ninja framework

Please look at the tests in the backend/api folder to show apples to apples comparison for when trying to create a new object with M2M relationship.

I tried to make this as apples to apples as possible by using django-ninja's ModelSchema and drf's ModelSerializer and ModelViewSet.

DISCLAIMER

I am very new to django-ninja and this could be a simple fix. I will update this repo if I learn of the 'correct' way to accomplish this in django-ninja.

Set Up

py -m venv venv
pip install -r requirements.txt
py manage.py migrate
py manage.py test

About

Django Ninja Example that shows what one has to do in order to get create/update (POST/PUT) working for M2M fields.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages