0.1.0
ChatServiceApp
This commit is contained in:
@@ -43,6 +43,21 @@ def new_msg_to_support_ajax(request):
|
||||
html = render_to_string('blocks/profile/b_new_msg_to_support.html', Dict, request=request)
|
||||
return JsonResponse({'html': html}, status=200)
|
||||
|
||||
|
||||
def support_create_ticket_ajax(request):
|
||||
from ChatServiceApp.forms import CreateTicketForm
|
||||
|
||||
if request.method != 'POST':
|
||||
raise Http404
|
||||
|
||||
Dict = {
|
||||
'forms': CreateTicketForm()
|
||||
}
|
||||
|
||||
html = render_to_string('blocks/profile/b_create_ticket.html', Dict, request=request)
|
||||
return JsonResponse({'html': html}, status=200)
|
||||
|
||||
|
||||
def change_profile_ajax(request):
|
||||
if request.method != 'POST':
|
||||
raise Http404
|
||||
|
||||
Reference in New Issue
Block a user