edit route url
This commit is contained in:
SDE
2023-07-31 19:31:53 +03:00
parent 2e9200953e
commit dab15df837
6 changed files with 44 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ urlpatterns = [
path('new_msg_to_user/', new_msg_to_user_ajax, name='new_msg_to_user' ),
path('new_msg_to_support/', new_msg_to_support_ajax, name='new_msg_to_support_ajax'),
path('support_create_ticket_ajax/', support_create_ticket_ajax, name='support_create_ticket_ajax'),
path('change_profile/', change_profile_ajax, name='change_profile_ajax'),
]

View File

@@ -47,19 +47,7 @@ def new_msg_to_support_ajax(request):
return JsonResponse({'html': html}, status=200)
@login_required(login_url='/profile/login/')
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)
@login_required(login_url='/profile/login/')