fix the model and migration in the case of a custom Django user model

I made this fix to enable the deployment of the plugin when the hosting Django application is using a custom user model.