33from framework .auth .core import Auth
44from django .utils import timezone
55
6- from .node import AbstractNode , Node , NodeLog
6+ from .node import AbstractNode , NodeLog
77from osf .exceptions import NodeStateError
88
99
@@ -26,7 +26,7 @@ def set_privacy(self, permissions, *args, **kwargs):
2626 raise NodeStateError ('You may not set privacy for a DraftNode.' )
2727
2828 def clone (self ):
29- raise NodeStateError ( 'A DraftNode may not be forked, used as a template, or registered.' )
29+ return super (). clone ( )
3030
3131 # Overrides AbstractNode.update_search
3232 def update_search (self ):
@@ -68,9 +68,9 @@ def register_node(self, schema, auth, draft_registration, parent=None, child_ids
6868 :param parent Node: parent registration of registration to be created
6969 :param provider RegistrationProvider: provider to submit the registration to
7070 """
71- self .convert_draft_node_to_node (auth )
71+ # self.convert_draft_node_to_node(auth)
7272 # Copies editable fields from the DraftRegistration back to the Node
7373 self .copy_editable_fields (draft_registration , save = True )
7474
7575 # Calls super on Node, since self is no longer a DraftNode
76- return super (Node , self ).register_node (schema , auth , draft_registration , parent = parent , child_ids = child_ids , provider = provider , manual_guid = manual_guid )
76+ return super (DraftNode , self ).register_node (schema , auth , draft_registration , parent = parent , child_ids = child_ids , provider = provider , manual_guid = manual_guid )
0 commit comments