Skip to content

Commit

Permalink
fix issue with tag relationship pre-save
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tordoff committed Aug 8, 2024
1 parent 17c12b0 commit ed13077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osf/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,8 +1215,8 @@ def create_unregistered(cls, fullname, email=None):
user.set_unusable_username()
user.set_unusable_password()
user.update_guessed_names()
user.save() # user needs to have a primary key value before tag relationship can be used.
user.add_system_tag(unregistered_created_source_tag(email))

return user

def update_guessed_names(self):
Expand Down

0 comments on commit ed13077

Please sign in to comment.