Use get_user_model from django.contrib.auth to fix a deprecation

This is not yet tested because of an issue with Django, https://code.djangoproject.com/ticket/22051