@classmethod
    def get_authuser_by_name(cls, request):
        username = authenticated_userid(request)
        if username:
            return cls.get_item(username=username)
Get user by username
dataset/ETHPy150Open ramses-tech/nefertari/nefertari/authentication/models.py/AuthModelMethodsMixin.get_authuser_by_name