summaryrefslogtreecommitdiffstats
path: root/openstack/common/db/sqlalchemy/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/common/db/sqlalchemy/models.py')
-rw-r--r--openstack/common/db/sqlalchemy/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstack/common/db/sqlalchemy/models.py b/openstack/common/db/sqlalchemy/models.py
index 6638c83..f61bb39 100644
--- a/openstack/common/db/sqlalchemy/models.py
+++ b/openstack/common/db/sqlalchemy/models.py
@@ -81,7 +81,8 @@ class ModelBase(object):
def iteritems(self):
"""Make the model object behave like a dict.
- Includes attributes from joins."""
+ Includes attributes from joins.
+ """
local = dict(self)
joined = dict([(k, v) for k, v in self.__dict__.iteritems()
if not k[0] == '_'])