Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

antidipyramid
Copy link
Contributor

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

Screenshot 2024-10-23 at 10 24 59 AM

Notes

Text content can be added to the page in the admin.

Testing Instructions

  • Verify that the new download page works

@hancush hancush temporarily deployed to openness-pro-feature-37-atzawt October 23, 2024 14:30 Inactive
@fgregg
Copy link
Member

fgregg commented Oct 23, 2024

@antidipyramid why isn't the heroku preview working?

@antidipyramid
Copy link
Contributor Author

@fgregg Looks like the app hasn't finished deploying.

pages/templates/lobbyist_downloads.html Outdated Show resolved Hide resolved
),
path(
"lobbyist-downloads/", LobbyistDownloadView.as_view(), name="lobbyist-downloads"
),
Copy link
Member

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.

@antidipyramid antidipyramid temporarily deployed to openness-pro-feature-37-atzawt October 23, 2024 15:40 Inactive
@@ -104,6 +105,7 @@
name="expenditure-detail",
),
path("committees/", CommitteeList.as_view(), name="committee-list"),
path("downloads/", downloads_redirect_view, name="downloads"),
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move lobbyist data to separate download page
3 participants