Bump version
This commit is contained in:
@@ -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)
|
||||
|
2
setup.py
2
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',
|
||||
|
@@ -64,7 +64,7 @@ from .types import (
|
||||
)
|
||||
|
||||
|
||||
__version__ = '0.25.4'
|
||||
__version__ = '0.26.0'
|
||||
|
||||
|
||||
__all__ = (
|
||||
|
@@ -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.
|
||||
|
||||
::
|
||||
|
||||
|
Reference in New Issue
Block a user