diff --git a/osf/models/mixins.py b/osf/models/mixins.py index 7f947130d2f6..f3063f1d91db 100644 --- a/osf/models/mixins.py +++ b/osf/models/mixins.py @@ -1136,6 +1136,8 @@ def set_subjects(self, new_subjects, auth, add_log=True): self.add_subjects_log(old_subjects, auth) self.save() + if hasattr(self, 'update_search'): + self.update_search() def set_subjects_from_relationships(self, subjects_list, auth, add_log=True): """ Helper for setting M2M subjects field from list of flattened subjects received from UI. @@ -1161,6 +1163,8 @@ def set_subjects_from_relationships(self, subjects_list, auth, add_log=True): self.add_subjects_log(old_subjects, auth) self.save() + if hasattr(self, 'update_search'): + self.update_search() def map_subjects_between_providers(self, old_provider, new_provider, auth=None): """