Skip to content

Commit

Permalink
Change untitled titles to empty string to prevent pre-mature form s…
Browse files Browse the repository at this point in the history
…ubmission
  • Loading branch information
John Tordoff committed Aug 30, 2023
1 parent d6f6d99 commit d944257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osf/models/registrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ def create_from_node(cls, user, schema, node=None, data=None, provider=None):

if not node:
# If no node provided, a DraftNode is created for you
node = DraftNode.objects.create(creator=user, title='Untitled')
node = DraftNode.objects.create(creator=user, title='')

if not (isinstance(node, Node) or isinstance(node, DraftNode)):
raise DraftRegistrationStateError()
Expand Down

0 comments on commit d944257

Please sign in to comment.