Fixed compatibility issue with django debug toolbar 1.2.