-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2842 from cisagov/za/2402-design-review
#2402: Design Review for Analyst Portfolio View - [ZA] - MIGRATION
- Loading branch information
Showing
39 changed files
with
876 additions
and
372 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -754,7 +754,7 @@ Example: `cf ssh getgov-za` | |
| 1 | **emailTo** | Specifies where the email will be emailed. Defaults to [email protected] on production. | | ||
|
||
## Populate federal agency initials and FCEB | ||
This script adds to the "is_fceb" and "initials" fields on the FederalAgency model. This script expects a CSV of federal CIOs to pull from, which can be sourced from [here](https://docs.google.com/spreadsheets/d/14oXHFpKyUXS5_mDWARPusghGdHCrP67jCleOknaSx38/edit?gid=479328070#gid=479328070). | ||
This script adds to the "is_fceb" and "acronym" fields on the FederalAgency model. This script expects a CSV of federal CIOs to pull from, which can be sourced from [here](https://docs.google.com/spreadsheets/d/14oXHFpKyUXS5_mDWARPusghGdHCrP67jCleOknaSx38/edit?gid=479328070#gid=479328070). | ||
|
||
### Running on sandboxes | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
146 changes: 146 additions & 0 deletions
146
...registrar/migrations/0130_remove_federalagency_initials_federalagency_acronym_and_more.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,146 @@ | ||
# Generated by Django 4.2.10 on 2024-09-30 17:59 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import registrar.models.federal_agency | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("registrar", "0129_alter_portfolioinvitation_portfolio_roles_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="federalagency", | ||
old_name="initials", | ||
new_name="acronym", | ||
), | ||
migrations.AlterField( | ||
model_name="federalagency", | ||
name="acronym", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Acronym commonly used to reference the federal agency (Optional)", | ||
max_length=10, | ||
null=True, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="domaininformation", | ||
name="portfolio", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="If blank, domain is not associated with a portfolio.", | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="information_portfolio", | ||
to="registrar.portfolio", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="domaininformation", | ||
name="sub_organization", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="If blank, domain is associated with the overarching organization for this portfolio.", | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="information_sub_organization", | ||
to="registrar.suborganization", | ||
verbose_name="Suborganization", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="domainrequest", | ||
name="portfolio", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="If blank, request is not associated with a portfolio.", | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="DomainRequest_portfolio", | ||
to="registrar.portfolio", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="domainrequest", | ||
name="sub_organization", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="If blank, request is associated with the overarching organization for this portfolio.", | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="request_sub_organization", | ||
to="registrar.suborganization", | ||
verbose_name="Suborganization", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="federalagency", | ||
name="federal_type", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[("executive", "Executive"), ("judicial", "Judicial"), ("legislative", "Legislative")], | ||
max_length=20, | ||
null=True, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="federalagency", | ||
name="is_fceb", | ||
field=models.BooleanField( | ||
blank=True, help_text="Federal Civilian Executive Branch (FCEB)", null=True, verbose_name="FCEB" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="portfolio", | ||
name="federal_agency", | ||
field=models.ForeignKey( | ||
default=registrar.models.federal_agency.FederalAgency.get_non_federal_agency, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
to="registrar.federalagency", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="portfolio", | ||
name="organization_name", | ||
field=models.CharField(blank=True, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="portfolio", | ||
name="organization_type", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("federal", "Federal"), | ||
("interstate", "Interstate"), | ||
("state_or_territory", "State or territory"), | ||
("tribal", "Tribal"), | ||
("county", "County"), | ||
("city", "City"), | ||
("special_district", "Special district"), | ||
("school_district", "School district"), | ||
], | ||
max_length=255, | ||
null=True, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="portfolio", | ||
name="senior_official", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="portfolios", | ||
to="registrar.seniorofficial", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="suborganization", | ||
name="name", | ||
field=models.CharField(max_length=1000, unique=True, verbose_name="Suborganization"), | ||
), | ||
] |
Oops, something went wrong.