add property to get deputy birth date formatted as d/m/y
This commit is contained in:
parent
17e683eed2
commit
bac1123b1a
|
@ -101,3 +101,9 @@ class Deputy(Item):
|
|||
return 'd60-70'
|
||||
else:
|
||||
return 'p70'
|
||||
|
||||
#property
|
||||
def formatted_birthdate(self):
|
||||
if not self.birthdate:
|
||||
return ''
|
||||
return self.birthdate.strftime('%d/%m/%Y')
|
||||
|
|
Reference in New Issue