diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-10-20 23:30:18 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-10-20 23:31:06 +0200 |
commit | 41bbff4701ac857bf6c468a4dc53836ee85baa11 (patch) | |
tree | 272540c17c5a0d8d86e744e8516a80d4bc13247d /docs | |
parent | dc7d02095fff8124aaeccf8f08958fa6797b6ce6 (diff) | |
download | factory-boy-41bbff4701ac857bf6c468a4dc53836ee85baa11.tar factory-boy-41bbff4701ac857bf6c468a4dc53836ee85baa11.tar.gz |
Update note on django's unsaved instance checks
This note was added to document a regression in Django 1.8.0; the
regression has been fixed in 1.8.4.
Closes #232
Diffstat (limited to 'docs')
-rw-r--r-- | docs/orms.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/orms.rst b/docs/orms.rst index 26390b5..9b209bc 100644 --- a/docs/orms.rst +++ b/docs/orms.rst @@ -40,12 +40,12 @@ All factories for a Django :class:`~django.db.models.Model` should use the once all post-generation hooks have run. -.. note:: Starting with Django 1.8, it is no longer possible to call ``.build()`` - on a factory if this factory uses a :class:`~factory.SubFactory` pointing - to another model: Django refuses to set a :class:`~djang.db.models.ForeignKey` +.. note:: With Django versions 1.8.0 to 1.8.3, it was no longer possible to call ``.build()`` + on a factory if this factory used a :class:`~factory.SubFactory` pointing + to another model: Django refused to set a :class:`~djang.db.models.ForeignKey` to an unsaved :class:`~django.db.models.Model` instance. - See https://code.djangoproject.com/ticket/10811 for details. + See https://code.djangoproject.com/ticket/10811 and https://code.djangoproject.com/ticket/25160 for details. .. class:: DjangoOptions(factory.base.FactoryOptions) |