.
This commit is contained in:
@@ -275,6 +275,7 @@ def answer_submit(request):
|
||||
|
||||
a = AnswerModel(question=q, answer=answer_string, status=status)
|
||||
a.save()
|
||||
return JsonResponse({"success": True, "error": "Answer added"})
|
||||
|
||||
return JsonResponse({"success": False, "error": "Invalid data"})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user