From 9d85b63c3bd3999bf805ba7642cad0ce577bbf34 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Wed, 26 Aug 2020 16:22:54 -0400 Subject: [PATCH] Make a fix in the providers delegation example --- examples/providers/factory_delegation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/providers/factory_delegation.py b/examples/providers/factory_delegation.py index f57d2dc9..0aee54d3 100644 --- a/examples/providers/factory_delegation.py +++ b/examples/providers/factory_delegation.py @@ -26,7 +26,7 @@ class User: # Defining User and Photo factories using DelegatedFactory provider: photos_factory = providers.DelegatedFactory(Photo) -users_factory = providers.DelegatedFactory( +users_factory = providers.Factory( User, photos_factory=photos_factory, )