Made it backwards compatible with Python 2.6 and Django 1.5