Màj du script de transfert, et correction de l'affichage de certaines infos
This commit is contained in:
parent
b1e591ce2c
commit
ebab4f5cb2
4 changed files with 176 additions and 77 deletions
|
@ -40,6 +40,10 @@ class Profile(models.Model):
|
|||
def __str__(self):
|
||||
return self.full_name
|
||||
|
||||
@property
|
||||
def age(self):
|
||||
return self.day.year - self.birth_date.year
|
||||
|
||||
def birthday(self):
|
||||
return self.birth_date.strftime("%d%m")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue