From 86c5fa848483e4f173f0e0d568ec21a3e8163795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Evren=20Esat=20=C3=96zkan?= Date: Tue, 19 Jul 2016 19:39:42 +0300 Subject: [PATCH] minor bug fixes --- zengine/messaging/model.py | 1 + zengine/messaging/views.py | 1 + 2 files changed, 2 insertions(+) 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