flashingpumpkin/django-socialregistration — pull request #174 by atheiste (2013-01-16 17:15:02+00:00)
Title: Added suport for custom user models in django 1.5.

The change is in contrib/*/models.py. As far as I know this seems to be the most elegant solution.