fixing more django compatibility issues 3