Patch for uWSGI

On uwsgi with custom user model UserSocialAuth._meta.get_field('user').rel.to returns type 'str'.
Patch for resolving this problem.