diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-11-14 23:42:30 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-11-15 00:03:37 +0100 |
commit | a19f64cbfadc0e36b2ff9812980e23955276632c (patch) | |
tree | 6180bd679b6d138b314dfdee27e0e1f4d4c99f30 | |
parent | 14640a61eca84a7624bc1994233529dcacc2417e (diff) | |
download | factory-boy-a19f64cbfadc0e36b2ff9812980e23955276632c.tar factory-boy-a19f64cbfadc0e36b2ff9812980e23955276632c.tar.gz |
Update docstrings.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
-rw-r--r-- | factory/base.py | 6 |
1 files 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) |