Skip to content

Commit

Permalink
Use get_username for member string representation
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha committed Mar 14, 2021
1 parent 5660b49 commit a54e55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machina/apps/forum_member/abstract_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Meta:
verbose_name_plural = _('Forum profiles')

def __str__(self):
return self.user.username
return self.user.get_username()

def get_avatar_upload_to(self, filename):
""" Returns the path to upload the associated avatar to. """
Expand Down

0 comments on commit a54e55b

Please sign in to comment.