Fix broken schedule detail view with query args

Small fix for a small bug but decided to put a test in for it and start that process. Its been a long time since I worked with django and the layout of the tests very much reflects my approach to other projects, if it's not to suit please let me know and I'll rework it. `./manage.py test openduty` seems to like it ok!