Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Alzpeta committed Sep 6, 2024
1 parent 314b413 commit f4e428a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions oarepo_doi/types/doi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@

class AssignDoiRequestType(NonDuplicableOARepoRequestType):
type_id = "assign_doi"
name = _("assign_doi")
name = _("Assign Doi")

available_actions = {
**super().available_actions,
"accept": CreateDoiAction,
"submit": ValidateDataForDoiAction,
}
@classmethod
@property
def available_actions(cls):
return {
**super().available_actions,
"accept": CreateDoiAction,
"submit": ValidateDataForDoiAction,
}

receiver_can_be_none = False
receiver_can_be_none = True
allowed_topic_ref_types = ModelRefTypes(published=True, draft=True)

0 comments on commit f4e428a

Please sign in to comment.