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

Opportunity views improvements. #395

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

Conversation

hemant10yadav
Copy link
Contributor

@hemant10yadav hemant10yadav commented Sep 18, 2024

Implemented the changes that were requested in a previous pull request, which has already been merged (see discussion)

@hemant10yadav hemant10yadav marked this pull request as draft September 18, 2024 10:57
@hemant10yadav hemant10yadav marked this pull request as ready for review September 18, 2024 11:02
@hemant10yadav hemant10yadav self-assigned this Sep 18, 2024
Comment on lines +373 to 374
redirect_url = reverse("opportunity:detail", args=(request.org.slug, pk))
return redirect(f"{redirect_url}?export_task_id={result.id}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this can be simplified, the redirect function also accepts the arguments that we have for reverse.

Suggested change
redirect_url = reverse("opportunity:detail", args=(request.org.slug, pk))
return redirect(f"{redirect_url}?export_task_id={result.id}")
return redirect(f"{redirect_url}?export_task_id={result.id}", request.org.slug, pk)

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.

2 participants