Temporary fix for Django>=1.5 tests

Add a temporary fix for the url resolving of tests that hit the same url
multiple times. It seems that Django>=1.5 puts them in a list, which is
not hashable and therefore the resolving fails with TypeError.