summaryrefslogtreecommitdiff
path: root/docs/orms.rst
diff options
context:
space:
mode:
authorAlejandro <tovarich@gmail.com>2016-01-06 19:36:10 -0300
committerRaphaƫl Barrois <raphael.barrois@polytechnique.org>2016-01-07 01:38:05 +0100
commit4172dd686ce483191b33e3189d716f11b3da921e (patch)
treedb2b5633ff9a6e3ed21e4206733238ade2ce4bf7 /docs/orms.rst
parent28ce31db61a46fbd73126630c758d32a7245da42 (diff)
downloadfactory-boy-4172dd686ce483191b33e3189d716f11b3da921e.tar
factory-boy-4172dd686ce483191b33e3189d716f11b3da921e.tar.gz
optional forced flush on SQLAlchemyModelFactory
fixes rbarrois/factory_boy#81
Diffstat (limited to 'docs/orms.rst')
-rw-r--r--docs/orms.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/orms.rst b/docs/orms.rst
index 9b209bc..bd481bd 100644
--- a/docs/orms.rst
+++ b/docs/orms.rst
@@ -333,6 +333,10 @@ To work, this class needs an `SQLAlchemy`_ session object affected to the :attr:
SQLAlchemy session to use to communicate with the database when creating
an object through this :class:`SQLAlchemyModelFactory`.
+ .. attribute:: force_flush
+
+ Force a session flush() at the end of :func:`~factory.alchemy.SQLAlchemyModelFactory._create()`.
+
A (very) simple example:
.. code-block:: python