fix: compatibility for django>=1.6