fix bug #14

Sorry for the delay.
I'm fairly new to Django, and I had some trouble getting the tests to work;
but I hope I got them right.