Details
Description
If you are viewing the admin page with an active contest (so that admin site is prefixed by the contest id in the URL) and you delete that contest, you get a 404 error afterwards instead of for example being taken into proper admin page without the contest prefix.
http://localhost:8000/c/--CONTEST-ID--/admin/contests/contest/--CONTEST-ID--/delete/
it is deleted and the current contest is switched to the next available without a 404. However, if you delete contest from
http://localhost:8000/c/--CONTEST-ID--/admin/contests/contest/ by selecting it from the list and clicking "delete selected contests" it indeed results in a 404 error.