Ejemplo n.º 1
0
 def populate_obj(self, item):
     """Populates the attributes of the passed obj with data from the form’s fields."""
     super().populate_obj(item)  # pylint: disable=no-member
     item.run_type = DagRunType.from_run_id(item.run_id)
     if item.conf:
         item.conf = json.loads(item.conf)
Ejemplo n.º 2
0
 def populate_obj(self, item):
     super().populate_obj(item)
     item.run_type = DagRunType.from_run_id(item.run_id).value
     if item.conf:
         item.conf = json.loads(item.conf)