fixed django compatibility check