IzzyLeech / terok-nor-station

0 stars 1 forks source link

Bug report: Redirect not working after creating, editing and deleting an episode #22

Open IzzyLeech opened 1 year ago

IzzyLeech commented 1 year ago

Describe the bug An error is given detail the URL pathing is not found after an episode is created, edited, or deleted.

Expected behavior Once an episode is created, edited, or deleted it should redirect the user back to the season.html

IzzyLeech commented 1 year ago

Fixed by adding the pk of the season that is associated with the season to the redirect using the reverse method to the update and delete episode view. Added to the add episode view to redirect to the season page that is inputted in the form field of season when creating an episode.