diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-31 14:06:45 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-31 14:06:45 +0200 |
commit | ad056787937844809b48dd36311dac0f8bd4c0ab (patch) | |
tree | 1738064a62e19441d2bd5a49a559a434c8187dd4 /docs/reference.rst | |
parent | 790e8ea2db7a68d7074809124dfd82c3b05b925b (diff) | |
download | factory-boy-ad056787937844809b48dd36311dac0f8bd4c0ab.tar factory-boy-ad056787937844809b48dd36311dac0f8bd4c0ab.tar.gz |
doc: Document upgrade path for FACTORY_*.
Diffstat (limited to 'docs/reference.rst')
-rw-r--r-- | docs/reference.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/reference.rst b/docs/reference.rst index 25fef22..b0dda50 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -106,6 +106,13 @@ The :class:`Factory` class .. versionadded:: 2.4.0 + .. attribute:: strategy + + Use this attribute to change the strategy used by a :class:`Factory`. + The default is :data:`BUILD_STRATEGY`. + + + .. class:: Factory .. note:: In previous versions, the fields of :class:`class Meta <factory.FactoryOptions>` were @@ -132,6 +139,11 @@ The :class:`Factory` class .. deprecated:: 2.4.0 See :attr:`FactoryOptions.exclude`. + .. attribute:: FACTORY_STRATEGY + + .. deprecated:: 2.4.0 + See :attr:`FactoryOptions.strategy`. + **Class-level attributes:** |