make sure to remove inactive templates properly

This commit is contained in:
Damien Elmes 2011-11-28 16:10:41 +09:00
parent 0032dd39c9
commit cd76706a2f

View file

@ -552,7 +552,7 @@ and ord = ? limit 1""", m['id'], t['ord']):
remove.append(t) remove.append(t)
del t['actv'] del t['actv']
for r in remove: for r in remove:
m['tmpls'].remove(t) d.models.remTemplate(m, r)
d.models.save(m) d.models.save(m)
# Post-schema upgrade # Post-schema upgrade