OpenUnited / platform

Other
41 stars 66 forks source link

Bounty Model Tweaks: Form Fixes and Code Cleanup #191

Closed dogukanteber closed 10 months ago

dogukanteber commented 10 months ago

This PR is all about the Bounty model. Previously, the challenge in the bounty update form wasn't pre-selected. That issue is fixed. Now, the challenge field comes pre-selected for bounty creation and update views.

Additionally, we used to pass the challenge_id to the URL as a parameter. With this PR, we put it into the URL path. Doing that made the code clearer.

Finally, unit tests are written and refactoring is made for the following views: