Skip to content

Commit

Permalink
Merge pull request #1321 from BLSQ/IA-2991-object-of-type-phone-numbe…
Browse files Browse the repository at this point in the history
…r-is-not-json-serializable

IA-2991 Fix for bug only when no limit parameter was given
  • Loading branch information
beygorghor authored May 22, 2024
2 parents 65b8d6b + 8ffb854 commit 359191d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iaso/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,8 +1350,8 @@ def as_short_dict(self):
"email": self.user.email,
"language": self.language,
"user_id": self.user.id,
"phone_number": self.phone_number if len(self.phone_number) > 0 else None,
"country_code": self.phone_number.country_code if self.phone_number else None,
"phone_number": self.phone_number.as_e164 if self.phone_number else None,
"country_code": region_code_for_number(self.phone_number).lower() if self.phone_number else None,
"projects": [p.as_dict() for p in self.projects.all().order_by("name")],
}

Expand Down

0 comments on commit 359191d

Please sign in to comment.