示例#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)
示例#2
0
文件: forms.py 项目: zorseti/airflow
 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)