Django 1.7 compat update. Fixes #255, thanks @danie1k