some fixes django