Make this work on Django 1.3