I am new in Django I have this function in views.py
def edituser(request, id):
    member = User.objects.get(id=id)
    return JsonResponse(member, safe=False)
i have the error: Object of type User is not JSON serializable
How can i solve to return User values to javascript ajax function ?
 
     
    