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

Merged
merged 5 commits into from
Oct 28, 2024
Merged

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

@antidipyramid antidipyramid requested a review from fgregg October 23, 2024 14:28
@hancush hancush temporarily deployed to openness-pro-feature-37-atzawt October 23, 2024 14:30 Inactive
@fgregg
Copy link
Contributor

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.

),
path(
"lobbyist-downloads/", LobbyistDownloadView.as_view(), name="lobbyist-downloads"
),
Copy link
Contributor

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
@antidipyramid antidipyramid temporarily deployed to openness-pro-feature-37-atzawt October 23, 2024 15:41 Inactive
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"),
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@antidipyramid antidipyramid temporarily deployed to openness-pro-feature-37-atzawt October 24, 2024 14:29 Inactive
@antidipyramid antidipyramid merged commit 4017fc4 into main Oct 28, 2024
2 checks passed
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