change support urls
This commit is contained in:
SDE
2023-08-01 19:18:00 +03:00
parent b0a9c3c873
commit bf14377841
6 changed files with 11 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ urlpatterns = [
path('subscribe/', subscribe_ajax, name='subscribe_ajax'),
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_tickets/', support_tickets_ajax, name='support_tickets_ajax'),
path('change_profile/', change_profile_ajax, name='change_profile_ajax'),

View File

@@ -36,20 +36,18 @@ def new_msg_to_user_ajax(request):
return JsonResponse({'html': html}, status=200)
@login_required(login_url='/profile/login/')
def new_msg_to_support_ajax(request):
def support_tickets_ajax(request):
if request.method != 'POST':
raise Http404
Dict = {
}
html = render_to_string('blocks/profile/b_new_msg_to_support.html', Dict, request=request)
html = render_to_string('blocks/profile/b_support_tickets.html', Dict, request=request)
return JsonResponse({'html': html}, status=200)
@login_required(login_url='/profile/login/')
def change_profile_ajax(request):
if request.method != 'POST':