Permalink
Browse files

Making the __unicode__ method much more useful

  • Loading branch information...
1 parent 03e0c95 commit 74cde096b1faf7bbd00db87d4d4d300bb50acab9 @rossbruniges rossbruniges committed Mar 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 gameon/users/models.py
View
@@ -28,7 +28,7 @@ def get_absolute_url(self):
def __unicode__(self):
"""Return a string representation of the user."""
- return self.display_name
+ return "%s (%s)" % (self.display_name, self.user.email)
@property
def username_hash(self):

0 comments on commit 74cde09

Please sign in to comment.