diff --git a/CHANGES.rst b/CHANGES.rst index f05bad5..53ac8c3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,12 +4,13 @@ Changelog Here you can see the full list of changes between each SQLAlchemy-Utils release. -0.26.0 (2014-xx-xx) +0.26.0 (2014-05-07) ^^^^^^^^^^^^^^^^^^^ - Added get_referencing_foreign_keys - Added get_tables - Added QueryChain +- Added dependent_objects 0.25.4 (2014-04-22) diff --git a/setup.py b/setup.py index 58f9513..ed9f665 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ for name, requirements in extras_require.items(): setup( name='SQLAlchemy-Utils', - version='0.25.4', + version='0.26.0', url='https://github.com/kvesteri/sqlalchemy-utils', license='BSD', author='Konsta Vesterinen, Ryan Leckey, Janne Vanhala, Vesa Uimonen', diff --git a/sqlalchemy_utils/__init__.py b/sqlalchemy_utils/__init__.py index 7f40d1a..732f797 100644 --- a/sqlalchemy_utils/__init__.py +++ b/sqlalchemy_utils/__init__.py @@ -64,7 +64,7 @@ from .types import ( ) -__version__ = '0.25.4' +__version__ = '0.26.0' __all__ = ( diff --git a/sqlalchemy_utils/functions/orm.py b/sqlalchemy_utils/functions/orm.py index ac92ff5..8d6e55c 100644 --- a/sqlalchemy_utils/functions/orm.py +++ b/sqlalchemy_utils/functions/orm.py @@ -40,13 +40,14 @@ def dependent_objects(obj, foreign_keys=None): dependent_objects(user).limit(5) - The common use case is checking for all dependent objects before deleting - parent object and inform the user if there are dependent objects with - ondelete='RESTRICT' foreign keys. If this kind of checking is not used + + The common use case is checking for all restrict dependent objects before + deleting parent object and inform the user if there are dependent objects + with ondelete='RESTRICT' foreign keys. If this kind of checking is not used it will lead to nasty IntegrityErrors being raised. In the following example we delete given user if it doesn't have any - foreign key restricted dependent_objects. + foreign key restricted dependent objects. ::