Updating to work with the lastest version of Django.
Merge pull request #8 from myles/master

Updated the code to work with Django 1.5.1.