class Nonce(models.Model):
    """ Required for OpenID functionality """
server_url = models.CharField(max_length=255)
timestamp = models.IntegerField()
salt = models.CharField(max_length=40)

def __unicode__(self):
    return 'Nonce: %s for %s' % (self.salt, self.server_url)


class Association(models.Model):
    """ Required for OpenID functionality """
server_url = models.TextField(max_length=2047)
handle = models.CharField(max_length=255)
secret = models.TextField(max_length=255)
issued = models.IntegerField()
lifetime = models.IntegerField()
assoc_type = models.TextField(max_length=64)

def __unicode__(self):
    return 'Association: %s, %s' % (self.server_url, self.handle)
Django + Google Федеративный вход