Skip to content

v5.0.2

Compare
Choose a tag to compare
@ProdByGodfather ProdByGodfather released this 30 Dec 07:31
· 22 commits to main since this release
988fd04

Version 5.0.2 - Release Notes

Added:

  • contains() Method to QuerySet
    The new contains() method has been added to the QuerySet class, enabling case-insensitive substring searches on fields like CharField and TextField. 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