Commit 9fdec95b authored by Willem ter Berg's avatar Willem ter Berg

bugfix

parent 751574b1
......@@ -13,14 +13,14 @@
"en-UK": "Planned"
}
},
"http://data.overheid.nl/status/in onderzoek": {
"http://data.overheid.nl/status/in_onderzoek": {
"code": "in onderzoek",
"labels": {
"nl-NL": "In onderzoek",
"en-UK": "Being researched"
}
},
"http://data.overheid.nl/status/niet beschikbaar": {
"http://data.overheid.nl/status/niet_beschikbaar": {
"code": "niet beschikbaar",
"labels": {
"nl-NL": "Niet schikbaar",
......
......@@ -73,14 +73,14 @@ def date_planned_validation(key, data_dict, errors, context):
dataset_status_tuple = ('dataset_status',)
affected_statusses = [
'http://data.overheid.nl/status/gepland',
'http://data.overheid.nl/status/in onderzoek'
'http://data.overheid.nl/status/in_onderzoek'
]
if not dataset_status_tuple in data_dict:
return key, data_dict, errors, context
if data_dict[dataset_status_tuple] in affected_statusses:
if not ('date_planned') in data_dict:
if not ('date_planned',) in data_dict:
errors[('date_planned',)] = ['date_planned is mandatory when dataset_status is gepland '
'or in onderzoek']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment