Fix when returning address_formatted.
This commit is contained in:
parent
a77e1c4450
commit
8f47f906de
1 changed files with 3 additions and 3 deletions
|
@ -133,9 +133,9 @@ class UserInfo(models.Model):
|
||||||
@property
|
@property
|
||||||
def address_formatted(self):
|
def address_formatted(self):
|
||||||
formatted = ', '.join([
|
formatted = ', '.join([
|
||||||
self.address_street_address,
|
self.address_street_address or '',
|
||||||
self.address_locality,
|
self.address_locality or '',
|
||||||
self.address_country])
|
self.address_country or ''])
|
||||||
|
|
||||||
if formatted.startswith(', '):
|
if formatted.startswith(', '):
|
||||||
formatted = formatted[2:]
|
formatted = formatted[2:]
|
||||||
|
|
Loading…
Reference in a new issue