fixed some django 1.5 errors