Update code so it's compatible with django 1.9
This merge request enables 1.9 tests and fixes all the source so it is compatible with future versions of django
This merge request enables 1.9 tests and fixes all the source so it is compatible with future versions of django