mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
after deleting a field, make sure to update card models
This commit is contained in:
parent
60fdadd9e8
commit
0c5f65c1ea
1 changed files with 1 additions and 0 deletions
|
@ -1094,6 +1094,7 @@ answerAlign from cardModels""")])
|
||||||
for cm in model.cardModels:
|
for cm in model.cardModels:
|
||||||
cm.qformat = cm.qformat.replace("%%(%s)s" % field.name, "")
|
cm.qformat = cm.qformat.replace("%%(%s)s" % field.name, "")
|
||||||
cm.aformat = cm.aformat.replace("%%(%s)s" % field.name, "")
|
cm.aformat = cm.aformat.replace("%%(%s)s" % field.name, "")
|
||||||
|
self.updateCardsFromModel(model)
|
||||||
model.setModified()
|
model.setModified()
|
||||||
self.flushMod()
|
self.flushMod()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue