Django-ninja

Latest version: v1.4.0

Safety actively analyzes 723144 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 7

1.0a3

Warning: This is a pre-release of Django Ninja V1

You probably should not use this version in production

----

What's new v1a3

- Fixed pydantic context serialisation 825

What's new v1a2

- Pagination class accepts a request object

What's new v1a1

- **async authentication** fully supported on all layers
- **CSRF is now automatic** on Cookie based authentication ( now you should be able to combine multiple cookie/header/etc authenticators and play around with csrf logic)
- **Pydantic2** - which has a core re-written in Rust and includes a lot of improvements and features like:
- Safer types.
- Better extensibility.
- Better performance - so far on few projects that I tested getting average 10% speed improvements (some particular views which do lot of validations should get pretty good bumps)

Unfortunately Django ninja integrates very deep into pydantic core with Schema class, so it is not possible to keep both pydantic v1 and v2 supported - and that is why ninja now bumps to version 1 which might have few deprecations or breaking changes on pydantic level

From Django ninja side I'm trying to make this upgrade as smooth as possible, if you use standard APIs without lot of magic - most likely upgrade should be without any code change

1.0a2

Warning: This is a pre-release of Django Ninja V1

You probably should not use this version in production

----

What's new v1a2

- Pagination class accepts a request object

What's new v1a1

- **async authentication** fully supported on all layers
- **CSRF is now automatic** on Cookie based authentication ( now you should be able to combine multiple cookie/header/etc authenticators and play around with csrf logic)
- **Pydantic2** - which has a core re-written in Rust and includes a lot of improvements and features like:
- Safer types.
- Better extensibility.
- Better performance - so far on few projects that I tested getting average 10% speed improvements (some particular views which do lot of validations should get pretty good bumps)

Unfortunately Django ninja integrates very deep into pydantic core with Schema class, so it is not possible to keep both pydantic v1 and v2 supported - and that is why ninja now bumps to version 1 which might have few deprecations or breaking changes on pydantic level

From Django ninja side I'm trying to make this upgrade as smooth as possible, if you use standard APIs without lot of magic - most likely upgrade should be without any code change

1.0a1

Warning: This is a pre-release of Django Ninja V1

You probably should not use this version in production

----

What's new

- **async authentication** fully supported on all layers
- **CSRF is now automatic** on Cookie based authentication ( now you should be able to combine multiple cookie/header/etc authenticators and play around with csrf logic)
- **Pydantic2** - which has a core re-written in Rust and includes a lot of improvements and features like:
- Safer types.
- Better extensibility.
- Better performance - so far on few projects that I tested getting average 10% speed improvements (some particular views which do lot of validations should get pretty good bumps)

Unfortunately Django ninja integrates very deep into pydantic core with Schema class, so it is not possible to keep both pydantic v1 and v2 supported - and that is why ninja now bumps to version 1 which might have few deprecations or breaking changes on pydantic level

From Django ninja side I'm trying to make this upgrade as smooth as possible, if you use standard APIs without lot of magic - most likely upgrade should be without any code change

0.22.2

- Fixed schema generation bug 774

0.22.1

Fixes a swagger ui error

0.22.0

What's Changed
* ModelSchema now support config.model_fields_optional to mark some or specific fields to be not required in schema
* Implement rudimentary support for async auth by kjagiello in https://github.com/vitalik/django-ninja/pull/735
* Allow to extend additional info key, value to OpenAPI Info section by chenatlas in https://github.com/vitalik/django-ninja/pull/715
* fix typo by quique in https://github.com/vitalik/django-ninja/pull/706
* api_operation is better described as a decorator by quique in https://github.com/vitalik/django-ninja/pull/707
* Added a section detailing how to reverse a url for the api docs page. by SunsetOrange in https://github.com/vitalik/django-ninja/pull/714
* Fix missing openapi endpoints by rednaks in https://github.com/vitalik/django-ninja/pull/731
* Add Django 4.2 support in `pyproject.toml` by baseplate-admin in https://github.com/vitalik/django-ninja/pull/736
* Added missing space by TheHippo in https://github.com/vitalik/django-ninja/pull/737
* fix: allow default example to be included in pagination output in generated API docs. by jkeyes in https://github.com/vitalik/django-ninja/pull/728
* Fix kwargs typing by SmileyChris in https://github.com/vitalik/django-ninja/pull/745
* Only title-case fields in schema if all lowercase verbose name by SmileyChris in https://github.com/vitalik/django-ninja/pull/748
* fix: paginate typo by MrEcho92 in https://github.com/vitalik/django-ninja/pull/752
* feat: add JSON encoding support for IPv4Address and IPv6Address by jkeyes in https://github.com/vitalik/django-ninja/pull/729
* Enable exception_handler to handle Pyright's strict mode by paulzakin in https://github.com/vitalik/django-ninja/pull/762
* Make optional field of UploadedFile optional by karlosss in https://github.com/vitalik/django-ninja/pull/766


New Contributors
* quique made their first contribution in https://github.com/vitalik/django-ninja/pull/706
* SunsetOrange made their first contribution in https://github.com/vitalik/django-ninja/pull/714
* rednaks made their first contribution in https://github.com/vitalik/django-ninja/pull/731
* TheHippo made their first contribution in https://github.com/vitalik/django-ninja/pull/737
* jkeyes made their first contribution in https://github.com/vitalik/django-ninja/pull/728
* MrEcho92 made their first contribution in https://github.com/vitalik/django-ninja/pull/752
* paulzakin made their first contribution in https://github.com/vitalik/django-ninja/pull/762
* karlosss made their first contribution in https://github.com/vitalik/django-ninja/pull/766
* andZibralabs made their first contribution in https://github.com/vitalik/django-ninja/pull/695
* kjagiello made their first contribution in https://github.com/vitalik/django-ninja/pull/735
* chenatlas made their first contribution in https://github.com/vitalik/django-ninja/pull/715

**Full Changelog**: https://github.com/vitalik/django-ninja/compare/v.0.21.0...v0.22.0

v.0.21.0
What's Changed
* Somewhat advanced filtering with FilterSchema by l1b3r in https://github.com/vitalik/django-ninja/pull/673
* Support both new and old style Union/Optional by gvangool in https://github.com/vitalik/django-ninja/pull/687
* Allow reversing URLs with multiple operations. by strange in https://github.com/vitalik/django-ninja/pull/638
* feat: openapi schema improvements by aliereno in https://github.com/vitalik/django-ninja/pull/504
* Fix 666: Support auth inheritance for routers by aasiffaizal in https://github.com/vitalik/django-ninja/pull/667
* improve error message in export_openapi_schema by taobojlen in https://github.com/vitalik/django-ninja/pull/653
* Add source maps for Redoc and Swagger UI by chris-mcdo in https://github.com/vitalik/django-ninja/pull/676
* Include information about Django 4.1 async ORM by geeshta in https://github.com/vitalik/django-ninja/pull/578
* Update crud.md by Trystanr in https://github.com/vitalik/django-ninja/pull/688
* Add a recipe for handling the file uploads by barseghyanartur in https://github.com/vitalik/django-ninja/pull/663
* [Docs] remove broken link by GTorreil in https://github.com/vitalik/django-ninja/pull/647
* Fix links to favicon in CDN templates by stephane in https://github.com/vitalik/django-ninja/pull/636
New Contributors
* geeshta made their first contribution in https://github.com/vitalik/django-ninja/pull/578
* GTorreil made their first contribution in https://github.com/vitalik/django-ninja/pull/647
* barseghyanartur made their first contribution in https://github.com/vitalik/django-ninja/pull/663
* aasiffaizal made their first contribution in https://github.com/vitalik/django-ninja/pull/667
* taobojlen made their first contribution in https://github.com/vitalik/django-ninja/pull/653
* l1b3r made their first contribution in https://github.com/vitalik/django-ninja/pull/673
* strange made their first contribution in https://github.com/vitalik/django-ninja/pull/638
* chris-mcdo made their first contribution in https://github.com/vitalik/django-ninja/pull/676
* Trystanr made their first contribution in https://github.com/vitalik/django-ninja/pull/688
* gvangool made their first contribution in https://github.com/vitalik/django-ninja/pull/687
* aliereno made their first contribution in https://github.com/vitalik/django-ninja/pull/504

**Full Changelog**: https://github.com/vitalik/django-ninja/compare/v0.20.0...v.0.21.0

Page 3 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.