diff --git a/AuthApp/js_views.py b/AuthApp/js_views.py index 2bb655f..62aab94 100644 --- a/AuthApp/js_views.py +++ b/AuthApp/js_views.py @@ -109,12 +109,17 @@ def send_message_ajax(request): html_content=html ) - return JsonResponse({'status': 'sended'}) + html = render_to_string('widgets/w_msg_send_succes.html', Dict, request) + + return JsonResponse({ + 'status': 'sended', + 'html': html + }) except Exception as e: return JsonResponse({ 'status': 'error', 'error': str(e) - }) + }, status=400) @login_required(login_url='/profile/login/')