def get_user(request):
    user_id = request.session.get('user_id', None)
    if user_id is not None:
        return request.site.users.get_unique(lambda user: user.id == user_id)
    return None
Fill missing model fields in JSON with {key: null value}.
dataset/ETHPy150Open wrr/wwwhisper/wwwhisper_auth/views.py/get_user--crossover with--dataset/ETHPy150Open ramses-tech/nefertari/nefertari/view.py/BaseView.fill_null_values