From 1b30e036eaf3e94bc82af9040a58a70cb17d6017 Mon Sep 17 00:00:00 2001 From: Val Hendrix Date: Tue, 3 Oct 2023 12:33:41 -0700 Subject: [PATCH] feat(transfer): prevents essdive transfer w/o pubdate Closes #409 --- archive_api/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archive_api/admin.py b/archive_api/admin.py index c66afdcb..bf3116fc 100644 --- a/archive_api/admin.py +++ b/archive_api/admin.py @@ -88,9 +88,9 @@ def _essdive_transfer(self, request, queryset, transfer_type): self.message_user(request, f"Dataset {dataset.data_set_id()} id not public and cannot be transferred to ESS-DIVE", messages.WARNING) - if dataset.submission_date is None: + if dataset.publication_date is None: self.message_user(request, - f"Dataset {dataset.data_set_id()} has never been submitted and cannot be transferred to ESS-DIVE", + f"Dataset {dataset.data_set_id()} has never been published and cannot be transferred to ESS-DIVE", messages.WARNING) if transfer_count > 0: