Django-readers

Latest version: v2.3.0

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

Scan your dependencies

Page 1 of 2

2.3.0

Added
- Added support for overriding field kwargs for autogenerated serializer fields via `out` mechanism ([99](https://github.com/dabapps/django-readers/pull/99)).

2.2.0

Added
- Added support for Django's reverse generic relations (`GenericRelation` model field) ([93](https://github.com/dabapps/django-readers/pull/93)).

Changed
- Add support for Django 5.0

2.1.2

Fixed
- Fix an error when using the `out` decorator on producer functions that return values like booleans, that can't have arbitrary attributes added to them ([86](https://github.com/dabapps/django-readers/issues/86)).

Changed
- Add support for Django 4.2
- Drop support for Python 3.7

2.1.1

Fixed
- Correctly set the allow_null attribute on nested serializers ([81](https://github.com/dabapps/django-readers/issues/81))

2.1.0

Changed
- Add support for Django 4.1
- Drop support for Django 2.2
- Add support for Python 3.11
- Drop support for Python 3.6

Added
- In the Django REST framework layer, callables in a spec are now automatically called and passed the `request` object ([76](https://github.com/dabapps/django-readers/pull/76))
- Support for generating a Django REST framework serializer from a spec, and for annotating custom pairs in a spec with their output field types. This enables automatic schema generation. ([76](https://github.com/dabapps/django-readers/pull/76))

2.0.0

Changed
- **BACKWARDS INCOMPATIBLE**: The default value of the `distinct` argument for the `pairs.count` and `pairs.has` functions has changed from `True` to `False`. This now matches the default value of the `distinct` arguments to Django's `Count` annotation. To retain current behaviour, add `distinct=True` to all calls to these two functions in your codebase. For background on this decision, see [this discussion](https://github.com/dabapps/django-readers/discussions/66).

Added
- Proper documentation! [https://www.django-readers.org](https://www.django-readers.org)
- New `pairs.annotate` function allowing you to annotate a queryset with aggregates, functions etc and produce the result.
- New `pairs.sum` function to annotate a queryset with the `Sum` aggregate function and produce the result.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.