Commit be3a8ca6 authored by Mindiell's avatar Mindiell

Added full_name from first_name and last_name

parent a9373608
...@@ -16,7 +16,12 @@ class Contact(models.Model): ...@@ -16,7 +16,12 @@ class Contact(models.Model):
return _('%(firstname)s %(lastname)s') % {'firstname': self.first_name, return _('%(firstname)s %(lastname)s') % {'firstname': self.first_name,
'lastname': self.last_name} 'lastname': self.last_name}
def full_name(self):
return _('%(firstname)s %(lastname)s') % {'firstname': self.first_name,
'lastname': self.last_name}
def get_photo_url(self): def get_photo_url(self):
if if
return return
return u'' return u''
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment