Release Notes for v5.1.0
New Features and Enhancements:
-
Enhanced
delete
Method:- The
delete
method now supports filtering based on multiple fields, not just theid
. This makes it more flexible for performing deletion operations based on different conditions in your models.
- The
-
Improved
contains
Method:- The
contains
method has been refactored to accept keyword arguments (**kwargs
), allowing for a cleaner and more Pythonic syntax. Developers can now filter based on fields using the formatModel.all().contains(field_name=value)
instead of the previousModel.all().contains('field_name', value)
.
- The
Benefits:
- More Flexible Deletions: The updated
delete
method allows you to specify any field for deletion, increasing its versatility in different use cases. - Cleaner Syntax for Filtering: The
contains
method now supports keyword arguments, offering a more intuitive way to filter results based on field values.
Compatibility:
- This release introduces breaking changes in the
delete
andcontains
methods, so ensure to update your existing code accordingly.
Versioning:
- This update is part of version
5.1.0
.
Thank you for using abarorm
!