Skip to content

Commit e95c8db

Browse files
Merge pull request #8037 from cfpb/ask-report-primary-field
Add primary portal topic to Ask CFPB report
2 parents ce329f3 + 12740dc commit e95c8db

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cfgov/v1/templates/v1/ask_report.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
<th>
3939
Portal topics
4040
</th>
41+
<th>
42+
Primary portal topic
43+
</th>
4144
<th>
4245
Portal categories
4346
</th>
@@ -91,6 +94,9 @@
9194
<br>
9295
{% endfor %}
9396
</td>
97+
<td>
98+
{{ page.primary_portal_topic }}
99+
</td>
94100
<td>
95101
{% for portal_category in page.portal_category.all %}
96102
{{ portal_category.heading }}

cfgov/v1/views/reports.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ class AskReportView(ReportView):
309309
"live",
310310
"last_edited",
311311
"portal_topic.all",
312+
"primary_portal_topic",
312313
"portal_category.all",
313314
"related_questions.all",
314315
"related_resource",
@@ -326,6 +327,7 @@ class AskReportView(ReportView):
326327
"live": "Live",
327328
"last_edited": "Last edited",
328329
"portal_topic.all": "Portal topics",
330+
"primary_portal_topic": "Primary portal topic",
329331
"portal_category.all": "Portal categories",
330332
"related_questions.all": "Related questions",
331333
"related_resource": "Related resource",

0 commit comments

Comments
 (0)