Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(transfer): prevents essdive transfer w/o pubdate #416

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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