Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Making the __unicode__ method much more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbruniges committed Mar 5, 2013
1 parent 03e0c95 commit 74cde09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gameon/users/models.py
Expand Up @@ -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):
Expand Down

0 comments on commit 74cde09

Please sign in to comment.