summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-11-18 00:35:19 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-11-18 00:39:52 +0100
commit336ea5ac8b2d922fb54f99edd55d4773dd126934 (patch)
treef46ee3cbbd9f1d6ab4ad4af122b66371cdc2eb85 /docs
parent13d310fa14f4e4b9a559f8b7887f2a2492357013 (diff)
downloadfactory-boy-336ea5ac8b2d922fb54f99edd55d4773dd126934.tar
factory-boy-336ea5ac8b2d922fb54f99edd55d4773dd126934.tar.gz
Remove deprecated features.
This disables the ``FACTORY_FOR`` syntax and related parameters, that should be declared through ``class Meta``.
Diffstat (limited to 'docs')
-rw-r--r--docs/orms.rst9
-rw-r--r--docs/reference.rst29
2 files changed, 0 insertions, 38 deletions
diff --git a/docs/orms.rst b/docs/orms.rst
index 88d49e9..e32eafa 100644
--- a/docs/orms.rst
+++ b/docs/orms.rst
@@ -39,11 +39,6 @@ All factories for a Django :class:`~django.db.models.Model` should use the
attributes, the base object will be :meth:`saved <django.db.models.Model.save>`
once all post-generation hooks have run.
- .. attribute:: FACTORY_DJANGO_GET_OR_CREATE
-
- .. deprecated:: 2.4.0
- See :attr:`DjangoOptions.django_get_or_create`.
-
.. class:: DjangoOptions(factory.base.FactoryOptions)
@@ -284,10 +279,6 @@ To work, this class needs an `SQLAlchemy`_ session object affected to the :attr:
* :func:`~factory.Factory.create()` uses :meth:`sqlalchemy.orm.session.Session.add`
- .. attribute:: FACTORY_SESSION
-
- .. deprecated:: 2.4.0
- See :attr:`~SQLAlchemyOptions.sqlalchemy_session`.
.. class:: SQLAlchemyOptions(factory.base.FactoryOptions)
diff --git a/docs/reference.rst b/docs/reference.rst
index b0dda50..5eea62c 100644
--- a/docs/reference.rst
+++ b/docs/reference.rst
@@ -115,35 +115,6 @@ The :class:`Factory` class
.. class:: Factory
- .. note:: In previous versions, the fields of :class:`class Meta <factory.FactoryOptions>` were
- defined as class attributes on :class:`Factory`. This is now deprecated and will be removed
- in 2.5.0.
-
- .. attribute:: FACTORY_FOR
-
- .. deprecated:: 2.4.0
- See :attr:`FactoryOptions.model`.
-
- .. attribute:: ABSTRACT_FACTORY
-
- .. deprecated:: 2.4.0
- See :attr:`FactoryOptions.abstract`.
-
- .. attribute:: FACTORY_ARG_PARAMETERS
-
- .. deprecated:: 2.4.0
- See :attr:`FactoryOptions.inline_args`.
-
- .. attribute:: FACTORY_HIDDEN_ARGS
-
- .. deprecated:: 2.4.0
- See :attr:`FactoryOptions.exclude`.
-
- .. attribute:: FACTORY_STRATEGY
-
- .. deprecated:: 2.4.0
- See :attr:`FactoryOptions.strategy`.
-
**Class-level attributes:**