From a19f64cbfadc0e36b2ff9812980e23955276632c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Wed, 14 Nov 2012 23:42:30 +0100 Subject: Update docstrings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaƫl Barrois --- factory/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/factory/base.py b/factory/base.py index 4b4f5af..20a3a6b 100644 --- a/factory/base.py +++ b/factory/base.py @@ -31,7 +31,8 @@ BUILD_STRATEGY = 'build' CREATE_STRATEGY = 'create' STUB_STRATEGY = 'stub' -# Creation functions. Use Factory.set_creation_function() to set a creation function appropriate for your ORM. +# Creation functions. Deprecated. +# Override Factory._create instead. def DJANGO_CREATION(class_to_create, **kwargs): warnings.warn( "Factories defaulting to Django's Foo.objects.create() is deprecated, " @@ -39,7 +40,8 @@ def DJANGO_CREATION(class_to_create, **kwargs): "factory.DjangoModelFactory instead.", PendingDeprecationWarning, 6) return class_to_create.objects.create(**kwargs) -# Building functions. Use Factory.set_building_function() to set a building functions appropriate for your ORM. +# Building functions. Deprecated. +# Override Factory._build instead. NAIVE_BUILD = lambda class_to_build, **kwargs: class_to_build(**kwargs) MOGO_BUILD = lambda class_to_build, **kwargs: class_to_build.new(**kwargs) -- cgit v1.2.3