summaryrefslogtreecommitdiff
path: root/docs/recipes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/recipes.rst')
-rw-r--r--docs/recipes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/recipes.rst b/docs/recipes.rst
index 529d837..c1f3700 100644
--- a/docs/recipes.rst
+++ b/docs/recipes.rst
@@ -80,7 +80,7 @@ factory_boy allows to define attributes of such profiles dynamically when creati
title = 'Dr'
# We pass in profile=None to prevent UserFactory from creating another profile
# (this disables the RelatedFactory)
- user = factory.SubFactory(UserFactory, profile=None)
+ user = factory.SubFactory('app.factories.UserFactory', profile=None)
class UserFactory(factory.django.DjangoModelFactory):
FACTORY_FOR = auth_models.User