Compare commits
2 Commits
5bf116cff5
...
840993a0fb
| Author | SHA1 | Date | |
|---|---|---|---|
| 840993a0fb | |||
| ee9436642a |
@@ -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