Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
add unicode and repr methods to OpenidProfile objects
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrildoussin committed Oct 6, 2009
1 parent 8053eda commit 0cc343d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion socialauth/models.py
Expand Up @@ -20,7 +20,15 @@ class OpenidProfile(models.Model):
user = models.ForeignKey(User) user = models.ForeignKey(User)
#Values which we get from openid.sreg #Values which we get from openid.sreg
email = models.EmailField() email = models.EmailField()
nickname = models.CharField(max_length = 100) nickname = models.CharField(max_length = 100)


def __unicode__(self):
return unicode(self.openid_key)

def __repr__(self):
return unicode(self.openid_key)



class TwitterUserProfile(models.Model): class TwitterUserProfile(models.Model):
""" """
Expand Down

0 comments on commit 0cc343d

Please sign in to comment.