diff --git a/zengine/messaging/model.py b/zengine/messaging/model.py index e3ba6542..361a8db1 100644 --- a/zengine/messaging/model.py +++ b/zengine/messaging/model.py @@ -312,6 +312,7 @@ def serialize(self, user=None): 'title': self.msg_title, 'sender_name': self.sender.full_name, 'sender_key': self.sender.key, + 'avatar_url': self.sender.avatar, 'key': self.key, 'actions': self.get_actions_for(user), } diff --git a/zengine/messaging/views.py b/zengine/messaging/views.py index b93e4c8a..5d6ae1e9 100644 --- a/zengine/messaging/views.py +++ b/zengine/messaging/views.py @@ -30,6 +30,7 @@ 'sender_name': string, 'sender_key': key, 'type': int, + 'avatar_url': string, 'key': key, 'actions':[('action name', 'view name'), ('Add to Favorite', '_zops_add_to_favorites'), # applicable to everyone