Django 1.2 compatibility