add comment_num/thumbup_num in message_list_api/message_type_list_api

Brightcells %!s(int64=9) %!d(string=hace) años
padre
commit
b3b9639df8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      message/models.py

+ 2 - 0
message/models.py

@@ -72,6 +72,8 @@ class UserMessageInfo(CreateUpdateMixin):
72 72
             'photo_id': self.photo_id,
73 73
             'photo_url': group_photo and group_photo.photo_url,
74 74
             'photo_thumbnail_url': group_photo and group_photo.photo_thumbnail_url,
75
+            'comment_num': group_photo and group_photo.comment_num,
76
+            'thumbup_num': group_photo and group_photo.thumbup_num,
75 77
             'msg_title': self.msg_title,
76 78
             'msg_content': self.msg_content,
77 79
             'read': self.read,