Django-ninja-aio-crud

Latest version: v0.7.8

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

Scan your dependencies

Page 2 of 4

0.7.2

What's Changed

News:
* Added support for relations serializations even if them are not ModelSerializer type by caspel26.

**Full Changelog**: https://github.com/caspel26/django-ninja-aio-crud/compare/v0.7.1...v0.7.2

* You can serialize them by adding into ReadSerializer as custom fields.

python
models.py
from django.db import models
from ninja_aio.models import ModelSerializer
from ninja import Schema

class BarSchema(Schema):
id: int
name: str
description: str


class Foo(ModelSerializer):
name = models.CharField(max_length=30)
bar = models.ForeignKey(Bar, on_delete=models.CASCADE, related_name="foos")
active = models.BooleanField(default=False)

property
def full_name(self):
return f"{self.name} example_full_name"

class ReadSerializer:
excludes = ["bar"]
customs = [("full_name", str, ""), ("bar", BarSchema, ...)]

class CreateSerializer:
fields = ["name"]
optionals = [("bar", str), ("active", bool)]

class UpdateSerializer:
excludes = ["id", "name"]
optionals = [("bar", str), ("active", bool)]

0.7.1

What's Changed

News:
* fix optionals Create and Update serializers , they didn't work properly with relations by caspel26.
* now if the relation declared has a read serializer it will be used properly into serialization by caspel26

**Full Changelog**: https://github.com/caspel26/django-ninja-aio-crud/compare/v0.6.3...v0.7.1

0.6.4

What's Changed

News:
* Added with_qs_request param to ModelUtil get_object function by caspel26.

**Full Changelog**: https://github.com/caspel26/django-ninja-aio-crud/compare/v0.6.2...v0.6.3

* By default get object function use queryset request method defined into model, you can disable it by adding with_qs_request=False

And that's it! For more information check **<a href="https://github.com/caspel26/django-ninja-aio-crud/blob/main/README.md">README</a>**

0.6.3

What's Changed

News:
* Added with_qs_request param to ModelUtil get_object function by caspel26.

**Full Changelog**: https://github.com/caspel26/django-ninja-aio-crud/compare/v0.6.2...v0.6.3

* By default get object function use queryset request method defined into model, you can disable it by adding with_qs_request=False

And that's it! For more information check **<a href="https://github.com/caspel26/django-ninja-aio-crud/blob/main/README.md">README</a>**

0.6.2

0.6.1

What's Changed

News:
* Fix query params and path params by caspel26.
* If fields and excluded fields are not defined into serializers optionals will be override fields so fields are not mandatory to declare anymore by caspel26.
* Pydantic validation error now is handled by default by caspel26.

**Full Changelog**: https://github.com/caspel26/django-ninja-aio-crud/compare/v0.6.0...v0.6.1

And that's it! For more information check **<a href="https://github.com/caspel26/django-ninja-aio-crud/blob/main/README.md">README</a>**

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.