Skip to content

Commit

Permalink
Merge pull request #7912 from cfpb/petition-category-filter
Browse files Browse the repository at this point in the history
Fixing category filter for Petitions
  • Loading branch information
chosak authored Aug 10, 2023
2 parents 370a80c + 4ecd9a1 commit 08b4ed6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
18 changes: 18 additions & 0 deletions cfgov/v1/migrations/0003_petition_categories_2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.20 on 2023-08-10 13:37

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('v1', '0002_petition_categories'),
]

operations = [
migrations.AlterField(
model_name='cfgovpagecategory',
name='name',
field=models.CharField(choices=[('Administrative adjudication docket', (('administrative-adjudication', 'Administrative adjudication'), ('stipulation-and-constent-order', 'Stipulation and consent order'))), ('Amicus Brief', (('us-supreme-court', 'U.S. Supreme Court'), ('fed-circuit-court', 'Federal Circuit Court'), ('fed-district-court', 'Federal District Court'), ('state-court', 'State Court'))), ('Blog', (('at-the-cfpb', 'At the CFPB'), ('directors-notebook', "Director's notebook"), ('policy-compliance', 'Policy and compliance'), ('data-research-reports', 'Data, research, and reports'), ('info-for-consumers', 'Info for consumers'))), ('Consumer Reporting Companies', (('nationwide', 'Nationwide'), ('employment-screening', 'Employment screening'), ('tenant-screening', 'Tenant screening'), ('check-bank-screening', 'Check and bank account screening'), ('personal-property-insurance', 'Personal property insurance'), ('medical', 'Medical'), ('low-income-and-subprime', 'Low-income and subprime'), ('supplementary-reports', 'Supplementary reports'), ('utilities', 'Utilities'), ('retail', 'Retail'), ('gaming', 'Gaming'))), ('Enforcement Action', (('administrative-proceeding', 'Administrative Proceeding'), ('civil-action', 'Civil Action'))), ('Final rule', (('interim-final-rule', 'Interim final rule'), ('final-rule', 'Final rule'))), ('FOIA Frequently Requested Record', (('report', 'Report'), ('log', 'Log'), ('record', 'Record'))), ('Newsroom', (('consumer-advisories', 'Consumer advisories'), ('directors-statement', "Director's statement"), ('op-ed', 'Op-ed'), ('press-release', 'Press release'), ('speech', 'Speech'), ('testimony', 'Testimony'))), ('Notice and Opportunity for Comment', (('notice-proposed-rule', 'Advance notice of proposed rulemaking'), ('proposed-rule', 'Proposed rule'), ('interim-final-rule-2', 'Interim final rule'), ('request-comment-info', 'Request for comment or information'), ('proposed-policy', 'Proposed policy'), ('intent-preempt-determ', 'Intent to make preemption determination'), ('info-collect-activity', 'Information collection activities'), ('notice-privacy-act', 'Notice related to Privacy Act'))), ('Petition for Rulemaking', (('open-petition', 'Open petition'), ('closed-petition', 'Closed petition'))), ('Research Hub', (('research-publication', 'Office of Research Publication'),)), ('Research Report', (('consumer-complaint', 'Consumer complaint'), ('super-highlight', 'Supervisory Highlights'), ('data-point', 'Data point'), ('industry-markets', 'Industry and markets'), ('consumer-edu-empower', 'Consumer education and empowerment'), ('to-congress', 'To Congress'), ('data-spotlight', 'Data spotlight'), ('issue-spotlight', 'Issue spotlight'))), ('Rule Under Development', (('notice-proposed-rule-2', 'Advance notice of proposed rulemaking'), ('proposed-rule-2', 'Proposed rule'))), ('Story', (('auto-loans', 'Auto loans'), ('bank-accts-services', 'Bank accounts and services'), ('credit-cards', 'Credit cards'), ('credit-reports-scores', 'Credit reports and scores'), ('debt-collection', 'Debt collection'), ('money-transfers', 'Money transfers'), ('mortgages', 'Mortgages'), ('payday-loans', 'Payday loans'), ('prepaid-cards', 'Prepaid cards'), ('student-loans', 'Student loans')))], max_length=255),
),
]
15 changes: 8 additions & 7 deletions cfgov/v1/util/ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
("leadership-calendar", "Leadership Calendar"),
("newsroom", "Newsroom"),
("notice-opportunity-comment", "Notice and Opportunity for Comment"),
("petitions", "Petition for Rulemaking"),
("research-hub", "Research Hub"),
("research-reports", "Research Report"),
("rule-under-dev", "Rule Under Development"),
Expand Down Expand Up @@ -141,6 +142,13 @@
("notice-privacy-act", "Notice related to Privacy Act"),
),
),
(
"Petition for Rulemaking",
(
("open-petition", "Open petition"),
("closed-petition", "Closed petition"),
),
),
(
"Research Hub",
(("research-publication", "Office of Research Publication"),),
Expand Down Expand Up @@ -183,13 +191,6 @@
("student-loans", "Student loans"),
),
),
(
"Petition",
(
("open-petition", "Open petition"),
("closed-petition", "Closed petition"),
),
),
]


Expand Down

0 comments on commit 08b4ed6

Please sign in to comment.