Add "commit" argument to Base model delete()
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 28 Nov 2012 12:50:31 +0000 (13:50 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 28 Nov 2012 12:52:41 +0000 (13:52 +0100)
commit329e39034b2ef2a9663fc2de16c8eae6c0313fdc
treeb50301d0443999129b8b9f0424e748b5185797e0
parentfa2f6ba1627b6ae50ada1892986b35ec8323d703
Add "commit" argument to Base model delete()

In case we want to bundle db actions into a single transaction, we
can now use delete(commit=False) to prevent the transaction from being
committed immediately. This is useful when e.g. deleting a User() and
thousands of his MediaEntries in a single commit.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/db/sql/base.py