adapted code for Django 1.7

* changed a method name
* use setting instead of method to obtain user model