Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion osf/migrations/0036_institution_sso_in_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='institution',
name='sso_in_progress',
field=models.BooleanField(default=False),
field=models.BooleanField(default=True),
),
]
3 changes: 2 additions & 1 deletion osf/models/institution.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class Institution(DirtyFieldsMixin, Loggable, ObjectIDMixin, BaseModel, Guardian
default='',
help_text='Full URL where institutional admins can access archived metrics reports.',
)
sso_in_progress = models.BooleanField(default=False)
sso_in_progress = models.BooleanField(default=True)

class Meta:
# custom permissions for use in the OSF Admin App
Expand Down Expand Up @@ -252,6 +252,7 @@ def reactivate(self):
"""
if self.deactivated:
self.deactivated = None
self.sso_in_progress = True
self.save()
else:
message = f'Action rejected - reactivating an active institution [{self._id}].'
Expand Down
1 change: 1 addition & 0 deletions osf_tests/test_institution.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def test_reactivate_institution(self):
institution.save()
institution.reactivate()
assert institution.deactivated is None
assert institution.sso_in_progress is True

def test_send_deactivation_email_call_count(self):
institution = InstitutionFactory()
Expand Down
Loading