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

Move POST functionality out of jobpost view handler #291

Open
jace opened this issue Feb 22, 2016 · 0 comments · May be fixed by #362
Open

Move POST functionality out of jobpost view handler #291

jace opened this issue Feb 22, 2016 · 0 comments · May be fixed by #362

Comments

@jace
Copy link
Member

jace commented Feb 22, 2016

Hasjob's views.listing.jobdetail view handles both GET and POST requests, and with the latter performs maintenance tasks such as the report form (user-facing), reject form (admin-only) and moderate form (admin-only). These three views are handled by jobdetail and not a separate view purely for reason of a legacy choice.

Each of these three needs to be moved out into a separate POST-only view with its own route that does a 303 redirect back to the main page. There is no reason for jobdetail handling POST queries.

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 a pull request may close this issue.

1 participant