Commit f6b7e262 authored by Elger Jonker's avatar Elger Jonker

Removes old fields from datasets


Former-commit-id: 992137ec
parent 590d5c5c
......@@ -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