0.8.8
processing send messages by mail
This commit is contained in:
@@ -109,12 +109,17 @@ def send_message_ajax(request):
|
|||||||
html_content=html
|
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:
|
except Exception as e:
|
||||||
return JsonResponse({
|
return JsonResponse({
|
||||||
'status': 'error',
|
'status': 'error',
|
||||||
'error': str(e)
|
'error': str(e)
|
||||||
})
|
}, status=400)
|
||||||
|
|
||||||
|
|
||||||
@login_required(login_url='/profile/login/')
|
@login_required(login_url='/profile/login/')
|
||||||
|
|||||||
Reference in New Issue
Block a user