A more conventional way to do this:

    auto_string = 'allowed' if auto_enroll else 'willautoenroll'