Fix error that occurred using Python 2.6 + Django 1.4