from serializer import UserSerializer


class NeonUserMiddleware(object):

    def process_request(self, request):
        if request.user.is_authenticated():
            request.user.user_json = UserSerializer(request.user, many=False
                ).data
        return None

a4b16f65894d994815628fbfd146115e32c18c2d
<mask token>

<mask token>


class NeonUserMiddleware(object):
    <mask token>

<mask token>


class NeonUserMiddleware(object):

    def process_request(self, request):
        if request.user.is_authenticated():
            request.user.user_json = UserSerializer(request.user, many=False
                ).data
        return None

from serializer import UserSerializer


class NeonUserMiddleware(object):

    def process_request(self, request):
        if request.user.is_authenticated():
            request.user.user_json = UserSerializer(request.user, many=False
                ).data
        return None
