support for django 1.6

I believe this fixes #18