Skip to content

Commit

Permalink
Docs: Remove old/wrong hint on create(…) being used internally
Browse files Browse the repository at this point in the history
  • Loading branch information
thtomate authored and rbarrois committed Mar 6, 2024
1 parent 121d3f1 commit 1595767
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -576,17 +576,6 @@ factory_boy supports two main strategies for generating instances, plus stubs.
>>> obj.save()
>>> return obj
.. OHAI_VIM*
.. warning:: For backward compatibility reasons, the default behavior 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 <FactoryOptions.model>` has an ``objects``
attribute *and* the :meth:`~Factory._create` classmethod of the
:class:`Factory` wasn't overridden.

.. function:: use_strategy(strategy)

Expand Down

0 comments on commit 1595767

Please sign in to comment.