Hello,
I create a new model like this
models = col.models
model = models.new(name)
models.add_field(model, models.new_field(...))
model['css'] = ...
template = models.new_template(...)
template['qfmt'] = ...
template['afmt'] = ...
models.add_template(model, template)
models.add(model)
the model is created fine and shown in Tools->Manage Note Types but it is not found in the model manager yet (restarting Anki fixes this of course). I found the hint “Notetype needs to be fetched from DB after adding.” in add_dict() but how should I do that?