Add compat file to support both Django 1.5.x and 1.4.x