diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-03-26 22:53:15 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-03-26 22:53:15 +0100 |
commit | 636ca46951d710a4b9d9fd61ec1da02294806d3d (patch) | |
tree | 23b5bd7bfd7938cccd39d72e829562ca6c515137 /docs/changelog.rst | |
parent | 72fd943513b0e516f06c53b13ff35ca814b0a4a0 (diff) | |
download | factory-boy-636ca46951d710a4b9d9fd61ec1da02294806d3d.tar factory-boy-636ca46951d710a4b9d9fd61ec1da02294806d3d.tar.gz |
Add support for multidb with Django (Closes #171).
The ``factory.django.DjangoModelFactory`` now takes an extra option:
```
class MyFactory(factory.django.DjangoModelFactory):
class Meta:
model = models.MyModel
database = 'replica'
```
This will create all instances of ``models.Model`` in the ``'replica'``
database.
Diffstat (limited to 'docs/changelog.rst')
-rw-r--r-- | docs/changelog.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/changelog.rst b/docs/changelog.rst index 0cf8368..c2da698 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,6 +11,7 @@ ChangeLog - Add support for getting/setting :mod:`factory.fuzzy`'s random state (see :issue:`175`, :issue:`185`). - Support lazy evaluation of iterables in :class:`factory.fuzzy.FuzzyChoice` (see :issue:`184`). + - Support non-default databases at the factory level (see :issue:`171`) *Bugfix:* |