finance email

remotes/origin/yandex_rebiling
Andrey 8 years ago
parent 846dbe0c4e
commit dfbf23a3b2
  1. 4
      access/models/other.py

@ -54,8 +54,8 @@ class Account(models.Model):
return self.owner.email
def get_phone(self):
return '' if self.phone.national_number else \
(self.phone.national_number if self.phone.country_code is None else str(self.phone))
return '' if self.phone is None else ('' if self.phone.national_number else \
(self.phone.national_number if self.phone.country_code is None else str(self.phone)))
class Meta:
verbose_name = 'Дополнительная информация о пользователе'

Loading…
Cancel
Save