Skip to content
Browse files

add unicode and repr methods to OpenidProfile objects

  • Loading branch information...
1 parent 8053eda commit 0cc343d5ce02ae39ba63fb0bf99cf58d8d3f32b5 @cyrildoussin cyrildoussin committed Oct 6, 2009
Showing with 9 additions and 1 deletion.
  1. +9 −1 socialauth/models.py
View
10 socialauth/models.py
@@ -20,7 +20,15 @@ class OpenidProfile(models.Model):
user = models.ForeignKey(User)
#Values which we get from openid.sreg
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):
"""

0 comments on commit 0cc343d

Please sign in to comment.
Something went wrong with that request. Please try again.