Skip to content

Commit

Permalink
[AIRFLOW-1200] Forbid creation of a variable with an empty key
Browse files Browse the repository at this point in the history
Closes apache#2299 from skudriashev/airflow-1200
  • Loading branch information
skudriashev authored and bolkedebruin committed May 17, 2017
1 parent 8ac87b2 commit 3acfa04
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2172,13 +2172,20 @@ def hidden_field_formatter(view, context, model, name):
'rows': 20,
}
}
form_args = {
'key': {
'validators': {
validators.DataRequired(),
},
},
}
column_sortable_list = (
'key',
'val',
'is_encrypted',
)
column_formatters = {
'val': hidden_field_formatter
'val': hidden_field_formatter,
}

# Default flask-admin export functionality doesn't handle serialized json
Expand Down

0 comments on commit 3acfa04

Please sign in to comment.