0.12.28 localization routines
This commit is contained in:
@@ -16,7 +16,7 @@ import json
|
||||
from datetime import datetime, time, timedelta
|
||||
from channels.layers import get_channel_layer
|
||||
from asgiref.sync import async_to_sync
|
||||
|
||||
from GeneralApp.funcs import get_and_set_lang
|
||||
|
||||
|
||||
@login_required(login_url='/profile/login/')
|
||||
@@ -25,6 +25,8 @@ def subscribe_now_ajax(request):
|
||||
if request.method != 'POST':
|
||||
raise Http404
|
||||
|
||||
lang = get_and_set_lang(request)
|
||||
|
||||
try:
|
||||
|
||||
data = json.loads(request.body)
|
||||
@@ -77,6 +79,8 @@ def show_cur_subscribe_ajax(request):
|
||||
if request.method != 'POST':
|
||||
raise Http404
|
||||
|
||||
lang = get_and_set_lang(request)
|
||||
|
||||
html = get_profile_subscribe_page_content_html(request)
|
||||
return JsonResponse({'html': html}, status=200)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user