mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
Make a fix in the providers delegation example
This commit is contained in:
parent
2b30e172d1
commit
9d85b63c3b
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user