v5.0.2
Version 5.0.2 - Release Notes
Added:
-
contains()
Method to QuerySet
The newcontains()
method has been added to theQuerySet
class, enabling case-insensitive substring searches on fields likeCharField
andTextField
. This method allows for easier querying when partial matches are needed, without the need for custom SQL queries.Usage:
posts = Post.all().contains('Godfather').to_dict()
This feature greatly improves the flexibility of data filtering, especially when dealing with user input that may have varying case styles.
Fixed:
- Minor optimizations and bug fixes in existing query methods to improve overall performance.
Changed:
- Updated documentation to reflect the addition of the contains() method and provide examples of how to use it effectively.
Important Notes:
This release introduces breaking changes to the way string-based queries are handled. If you have custom queries or filters involving string matching, you should migrate to using the new contains() method for improved compatibility and flexibility.
Upgrade Instructions: To upgrade to version 5.0.2, run:
pip install --upgrade abarorm
After upgrading, you can start using the contains()
method for substring matching in your QuerySet
filters.
with respect @ProdByGodfather