Should probably just be:

    return user.is_staff

Pretty minor - feel free to update it, or I'll just merge as is and update later.