Fixed notification.to_json broke when slots was added.

This commit is contained in:
Tim Kuhlman 2014-03-17 16:47:23 -06:00
parent 06d7913248
commit b373a357ba

View File

@ -57,5 +57,5 @@ class Notification(object):
'state',
'tenant_id'
]
notification_data = {name: self.name for name in notification_fields}
notification_data = {name: getattr(self, name) for name in notification_fields}
return json.dumps(notification_data)