def post(self, request):
    for (key, value) in request.data.items():
        request.session[key] = value
    return Response({key: value for (key, value) in request.session.items()})
def post(self, request):
    for (key, value) in request.data.items():
        request.session[key] = value
    return Response({key: value for (key, value) in request.session.items()})