Verified Commit 992137ec authored by Elger Jonker's avatar Elger Jonker

Removes old fields from datasets

parent 6435baf5
Pipeline #40000444 passed with stage
in 12 minutes and 38 seconds
......@@ -678,9 +678,13 @@ class DatasetAdmin(ImportExportModelAdmin, admin.ModelAdmin):
importers = {
'excel': excel,
'dutch_government': dutch_government,
'': excel
'': excel,
None: excel
}
if not importers.get(dataset.type, None):
raise ValueError('Datasource parser for %s is not available.' % dataset.type)
(importers[dataset.type].import_datasets.si(**kwargs)
| dataset_import_finished.si(dataset)).apply_async()
self.message_user(request, "Import started, will run in parallel.")
......
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