|
|
|
|
@ -90,7 +90,7 @@ def sendgrid_update_recipients(): |
|
|
|
|
'last_login': user.last_login and user.last_login.strftime(date_format), |
|
|
|
|
'last_course_purchase': last_course_purchase, |
|
|
|
|
'last_school_purchase': last_school_purchase, |
|
|
|
|
'gender': {User.NOT_DEFINED: '', User.MALE: 'Мужчина', User.FEMALE: 'Женщина'}[user.gender], |
|
|
|
|
# 'gender': {User.NOT_DEFINED: '', User.MALE: 'Мужчина', User.FEMALE: 'Женщина'}[user.gender] if user.gender else '', |
|
|
|
|
'birthday': user.birthday and user.birthday.strftime(date_format), |
|
|
|
|
'date_joined': user.date_joined.strftime(date_format), |
|
|
|
|
}) |
|
|
|
|
|