if self.survey_passwords and not display: data['survey_passwords'] = self.survey_passwords else: prompt_val = getattr(self, prompt_name) if prompt_val is not None: data[prompt_name] = prompt_val return data for field_name in JobTemplate.get_ask_mapping().keys(): if field_name == 'extra_vars': continue try: LaunchTimeConfigBase._meta.get_field(field_name) except FieldDoesNotExist: setattr(LaunchTimeConfigBase, field_name, NullablePromptPseudoField(field_name)) class LaunchTimeConfig(LaunchTimeConfigBase): ''' Common model for all objects that save details of a saved launch config WFJT / WJ nodes, schedules, and job launch configs (not all implemented yet) ''' class Meta: abstract = True # Special case prompting fields, even more special than the other ones extra_data = JSONField( blank=True, default=dict )
data['survey_passwords'] = self.survey_passwords else: prompt_val = getattr(self, prompt_name) if prompt_val is not None: data[prompt_name] = prompt_val return data for field_name in JobTemplate.get_ask_mapping().keys(): if field_name == 'extra_vars': continue try: LaunchTimeConfigBase._meta.get_field(field_name) except FieldDoesNotExist: setattr(LaunchTimeConfigBase, field_name, NullablePromptPseudoField(field_name)) class LaunchTimeConfig(LaunchTimeConfigBase): """ Common model for all objects that save details of a saved launch config WFJT / WJ nodes, schedules, and job launch configs (not all implemented yet) """ class Meta: abstract = True # Special case prompting fields, even more special than the other ones extra_data = JSONBlob(default=dict, blank=True) survey_passwords = prevent_search( JSONBlob( default=dict,