def get_profile(user: User) -> Optional[Profile]:
    try:
        return user.profile
    except Profile.DoesNotExist:
        return None
def get_profile(user: User) -> Optional[Profile]:
    try:
        return user.profile
    except Profile.DoesNotExist:
        return None