For django <= 1.3