THE REST: mostly fixing/changing how tags/labellist stuff works

This commit is contained in:
2019-11-17 21:33:58 +01:00
parent b09a84db06
commit 0c6dcbb2f0
8 changed files with 87 additions and 56 deletions

View File

@@ -34,9 +34,15 @@ class AddExampleTranslation(NoReset):
# just adding to the copy to show in the modal
example.copy().translations.append("")
class AddToLabelList(NoReset):
def update_model(self, model):
list_to_add_to = self.get_arg(0, list)
thing_to_add_getter = self.get_arg(1)
thing_to_add = thing_to_add_getter()
# just adding to the copy to show in the modal
self.example.copy().translations.append("")
list_to_add_to.append(thing_to_add)
class EditExampleTranslation(Message):