diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-03-11 22:30:45 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-03-11 22:30:45 +0100 |
commit | 16e1a65f5b93615d946b74e3fb4d0b61c99ae0d2 (patch) | |
tree | e5ca942c8ec37401e96f1fca9a1edde94ec5e1c0 /docs | |
parent | de3a552eab032cb980a2fb78976fc3dc8cd5f1c8 (diff) | |
download | factory-boy-16e1a65f5b93615d946b74e3fb4d0b61c99ae0d2.tar factory-boy-16e1a65f5b93615d946b74e3fb4d0b61c99ae0d2.tar.gz |
Remove CircularSubFactory.
Replace CircularSubFactory('module', 'symbol') with SubFactory('module.symbol').
Diffstat (limited to 'docs')
-rw-r--r-- | docs/changelog.rst | 1 | ||||
-rw-r--r-- | docs/reference.rst | 13 |
2 files changed, 1 insertions, 13 deletions
diff --git a/docs/changelog.rst b/docs/changelog.rst index 88107a4..518ab9e 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -16,6 +16,7 @@ ChangeLog - Remove associated class discovery - Remove :class:`~factory.InfiniteIterator` and :func:`~factory.infinite_iterator` + - Remove :class:`~factory.CircularSubFactory` - Stop defaulting to Django's ``Foo.objects.create()`` when "creating" instances - Remove STRATEGY_* - Remove :meth:`~factory.Factory.set_building_function` / :meth:`~factory.Factory.set_creation_function` diff --git a/docs/reference.rst b/docs/reference.rst index 27e2e14..955d3c5 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -657,19 +657,6 @@ Obviously, such circular relationships require careful handling of loops: <john (group: MyGroup)> -.. class:: CircularSubFactory(module_name, symbol_name, **kwargs) - - .. OHAI_VIM** - - Lazily imports ``module_name.symbol_name`` at the first call. - -.. deprecated:: 1.3.0 - Merged into :class:`SubFactory`; will be removed in 2.0.0. - - Replace ``factory.CircularSubFactory('some.module', 'Symbol', **kwargs)`` - with ``factory.SubFactory('some.module.Symbol', **kwargs)`` - - SelfAttribute """"""""""""" |