From b866229efbf1cc7a51209b8d3deec21c5ee44b7c Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Wed, 2 Sep 2015 18:55:36 +0300 Subject: [PATCH] Update ExternalDependency provider example --- examples/providers/external_dependency.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/providers/external_dependency.py b/examples/providers/external_dependency.py index 3e25fb9d..8408e183 100644 --- a/examples/providers/external_dependency.py +++ b/examples/providers/external_dependency.py @@ -1,4 +1,4 @@ -"""`ExternalDependency` providers example.""" +"""`di.ExternalDependency` providers example.""" import sqlite3 import contextlib @@ -18,6 +18,7 @@ class UserService(object): Database dependency need to be injected via init arg. """ self.database = database + self.database.row_factory = sqlite3.dbapi2.Row def init_database(self): """Initialize database, if it has not been initialized yet."""