The code is compatible with the new version of flask-classy