0.4.44 fix lang for feedback request

This commit is contained in:
SDE
2024-01-06 00:27:46 +03:00
parent b3c84f3a44
commit 1b6f7aa14d
2 changed files with 7 additions and 0 deletions

View File

@@ -28,10 +28,15 @@ def send_feedback_form_ajax(request):
try:
data = request.POST
# if not data and request.body:
# data = json.loads(request.body)
if 'lang' in data:
activate(data['lang'])
feedback_form = FeedbackForm(data=data)
if not feedback_form.is_valid():