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)
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)