-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add separate lobbyist download page #222
Conversation
@antidipyramid why isn't the heroku preview working? |
), | ||
path( | ||
"lobbyist-downloads/", LobbyistDownloadView.as_view(), name="lobbyist-downloads" | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add a 301 redirect from downlods to camp-find-downloads.
camp_fin/urls.py
Outdated
@@ -104,6 +105,7 @@ | |||
name="expenditure-detail", | |||
), | |||
path("committees/", CommitteeList.as_view(), name="committee-list"), | |||
path("downloads/", downloads_redirect_view, name="downloads"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think you can just do
path("downloads/",
HttpResponsePermanentRedirect(reverse("camp-fin-downloads")),
name="downloads"),
seems clearer than creating a custom view that's just wrapping that up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Doing it this way threw an error, so I used a RedirectView.
Overview
This PR adds a separate lobbyist download page. Since there are two download pages now (one for campaign finance and another for lobbyists) I renamed the templates and views accordingly.
Closes #221
Demo
Notes
Text content can be added to the page in the admin.
Testing Instructions