Skip to content

Commit

Permalink
feat(transfer): prevents essdive transfer w/o pubdate
Browse files Browse the repository at this point in the history
Closes #409
  • Loading branch information
vchendrix committed Oct 3, 2023
1 parent 327298e commit 2e9da93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive_api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2e9da93

Please sign in to comment.