Source

django-publicauth / openauth / models.py

from django.db import models
from django.contrib.auth.models import User


class SocialID(models.Model):
    user = models.ForeignKey(User)
    identity = models.CharField(u'Social ID', max_length=255, unique=True)
    provider = models.CharField(u'Social Authentication provider name', max_length=255)

    def __unicode__(self):
        return "%s -> %s" % (self.provider, self.identity)