From 790e8ea2db7a68d7074809124dfd82c3b05b925b Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Wed, 21 May 2014 14:01:41 +0200 Subject: Introduce back missing doc about migrating FACTROY_DJANGO_GET_OR_CREATE. --- docs/orms.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/orms.rst b/docs/orms.rst index d3d98c9..6a942a6 100644 --- a/docs/orms.rst +++ b/docs/orms.rst @@ -40,6 +40,11 @@ All factories for a Django :class:`~django.db.models.Model` should use the attributes, the base object will be :meth:`saved ` 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) @@ -47,6 +52,8 @@ All factories for a Django :class:`~django.db.models.Model` should use the .. attribute:: django_get_or_create + .. versionadded:: 2.4.0 + Fields whose name are passed in this list will be used to perform a :meth:`Model.objects.get_or_create() ` instead of the usual :meth:`Model.objects.create() `: -- cgit v1.2.3