Releases: dabapps/django-readers
Releases · dabapps/django-readers
2.5.1
Release 2.5.0
Release 2.4.0
Release 2.3.0
Added
- Added support for overriding field kwargs for autogenerated serializer fields via
outmechanism (#99).
Release 2.2.0
Added
- Added support for Django's reverse generic relations (
GenericRelationmodel field) (#93).
Changed
- Add support for Django 5.0
Release 2.1.2
Fixed
- Fix an error when using the
@outdecorator on producer functions that return values like booleans, that can't have arbitrary attributes added to them (#86).
Changed
- Add support for Django 4.2
- Drop support for Python 3.7
Release 2.1.1
Fixed
- Correctly set the allow_null attribute on nested serializers (#81)
Release 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
requestobject (#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)
Release 2.0.0
Changed
- BACKWARDS INCOMPATIBLE: The default value of the
distinctargument for thepairs.countandpairs.hasfunctions has changed fromTruetoFalse. This now matches the default value of thedistinctarguments to Django'sCountannotation. To retain current behaviour, adddistinct=Trueto all calls to these two functions in your codebase. For background on this decision, see this discussion.
Added
- Proper documentation! https://www.django-readers.org
- New
pairs.annotatefunction allowing you to annotate a queryset with aggregates, functions etc and produce the result. - New
pairs.sumfunction to annotate a queryset with theSumaggregate function and produce the result.
Release 1.1.0
Added
- New
pairs.discard_queryset_functionandpairs.discard_projectorfunctions to discard one or other item in a reader pair.
Changed
SpecMixinnow applies prepare function inget_queryset, notfilter_queryset