Skip to content

Commit

Permalink
new comment added to account
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Oct 22, 2016
1 parent 543b0cb commit 110176d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/budy/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,15 @@ def notify(self, name = None, *args, **kwargs):

@property
def title(self):
"""
Retrieves the title of the account, this value should
be used as a prefix for the full name generation.
:rtype: String
:return: The title value for the current account, taking
into account the selected gender.
"""

return "Mrs." if self.gender == "Female" else "Mr."

def _set_avatar_d(self, image = "avatar.png", mime = "image/png"):
Expand Down

0 comments on commit 110176d

Please sign in to comment.