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):
return _('%(firstname)s %(lastname)s') % {'firstname': self.first_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):
if self.photo:
return self.photo.url
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