Django 1.2.7 compatibility