def METHOD_NAME(user):
    user_dict = model_to_dict(user)
    for field in (
        "password",
        "groups",
        "user_permissions",
        "date_joined",
        "last_login",
    ):
        if field in user_dict:
            del user_dict[field]
    return user_dict