Skip to content

Commit

Permalink
Update DOI metadata on GMR update
Browse files Browse the repository at this point in the history
  • Loading branch information
mfraezz committed Aug 14, 2023
1 parent 98a3f6c commit e7a7f36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osf/models/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def update(self, new_values, auth):
self._log_update(auth, updated_fields)
if hasattr(self.guid.referent, 'update_search'):
self.guid.referent.update_search()
if hasattr(self.guid.referent, 'request_identifier_update'):
self.guid.referent.request_identifier_update('doi')

def _log_update(self, auth, updated_fields):
from osf.models.files import BaseFileNode
Expand Down

0 comments on commit e7a7f36

Please sign in to comment.