-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task/DES-2616: Add TAS institution to user profile and update it on l…
…ogin (#1130) * Add TAS institution to user profile and update it on login * update institution in db when profile update form is submitted --------- Co-authored-by: Jake Rosenberg <[email protected]>
- Loading branch information
Showing
7 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
designsafe/apps/accounts/migrations/0020_designsafeprofile_institution.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2.6 on 2023-11-18 18:22 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("designsafe_accounts", "0019_designsafeprofile_nh_interests_primary"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="designsafeprofile", | ||
name="institution", | ||
field=models.CharField(default=None, max_length=256, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,6 +137,7 @@ def mock_user_side_effect(username = 'ds_admin', email = '[email protected]'): | |
|
||
# pass test for duplicate email check | ||
mock_tas().get_user.side_effect = mock_user_side_effect | ||
mock_tas().save_user.side_effect = mock_user_side_effect | ||
|
||
edit_url = reverse('designsafe_accounts:profile_edit') | ||
self.client.login(username='ds_admin', password='admin/password') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters