model_name is a class method. fixes #8332