0.1.12
create_ticket def
This commit is contained in:
@@ -14,13 +14,13 @@ from django.urls import reverse
|
|||||||
|
|
||||||
@login_required(login_url='/profile/login/')
|
@login_required(login_url='/profile/login/')
|
||||||
def support_create_ticket_form_ajax(request):
|
def support_create_ticket_form_ajax(request):
|
||||||
from ChatServiceApp.forms import CreateTicketForm
|
from ChatServiceApp.forms import TicketForm
|
||||||
|
|
||||||
if request.method != 'POST':
|
if request.method != 'POST':
|
||||||
raise Http404
|
raise Http404
|
||||||
|
|
||||||
Dict = {
|
Dict = {
|
||||||
'forms': CreateTicketForm()
|
'forms': TicketForm()
|
||||||
}
|
}
|
||||||
|
|
||||||
html = render_to_string('blocks/profile/b_create_ticket.html', Dict, request=request)
|
html = render_to_string('blocks/profile/b_create_ticket.html', Dict, request=request)
|
||||||
|
|||||||
Reference in New Issue
Block a user