THE REST: mostly fixing/changing how tags/labellist stuff works
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user