Beispiel #1
0
    def draft_child_deposit(self):
        """
        Get the deposit of the draft child.

        Return `None` if no new-version deposit exists.
        """
        from invenio_pidrelations.contrib.records import RecordDraft
        if self.draft_child:
            return RecordDraft.get_draft(self.draft_child)
        else:
            return None
Beispiel #2
0
 def draft_child_deposit(self):
     from invenio_pidrelations.contrib.records import RecordDraft
     return RecordDraft.get_draft(self.draft_child)