summaryrefslogtreecommitdiff
path: root/docs/reference.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference.rst')
-rw-r--r--docs/reference.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/reference.rst b/docs/reference.rst
index 6d01e5d..03023fc 100644
--- a/docs/reference.rst
+++ b/docs/reference.rst
@@ -235,6 +235,15 @@ factory_boy supports two main strategies for generating instances, plus stubs.
.. OHAI_VIM*
+ .. warning:: For backward compatibility reasons, the default behaviour of
+ factory_boy is to call ``MyClass.objects.create(*args, **kwargs)``
+ when using the ``create`` strategy.
+
+ That policy will be used if the
+ :attr:`associated class <Factory.FACTORY_FOR>` has an ``objects``
+ attribute *and* the :meth:`~Factory._create` classmethod of the
+ :class:`Factory` wasn't overridden.
+
.. function:: use_strategy(strategy)