diff --git a/ChatServiceApp/funcs.py b/ChatServiceApp/funcs.py index a0b4fec..e1a62b5 100644 --- a/ChatServiceApp/funcs.py +++ b/ChatServiceApp/funcs.py @@ -10,7 +10,7 @@ from django.template.loader import render_to_string from django.urls import reverse import json from datetime import datetime, time - +from django.conf import settings def get_update_chat_Dict(data): @@ -63,7 +63,10 @@ def get_update_chat_Dict(data): # формируем правую панель - context_Dict.update({'receivers': receivers}) + context_Dict.update({ + 'receivers': receivers, + 'MEDIA_URL': settings.MEDIA_URL + }) users_list_html = render_to_string( 'blocks/profile/b_list_of_users_messenger.html', context_Dict) res_Dict.update({ @@ -87,7 +90,10 @@ def get_update_chat_Dict(data): if ticket.manager: context_Dict.update({'new_msg_allow': True}) - context_Dict.update({'messages': msgs}) + context_Dict.update({ + 'messages': msgs, + 'MEDIA_URL': settings.MEDIA_URL + }) html = render_to_string(tpl_name, context_Dict) if required_full_support_chat_html: res_Dict.update({'support_chat_html': html}) diff --git a/templates/widgets/w_chat_right_panel_user.html b/templates/widgets/w_chat_right_panel_user.html index f546e21..5af30e5 100644 --- a/templates/widgets/w_chat_right_panel_user.html +++ b/templates/widgets/w_chat_right_panel_user.html @@ -1,7 +1,7 @@ {% load static %}
- + {{ item.user_profile }}