diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-09 08:54:26 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-09 08:54:26 +0700 |
| commit | cb49fc4e0d1f8995626dbf2a12b5b29c67b98156 (patch) | |
| tree | 0403cd7fe9bd8c0f8c9c13df9aa1506086f57a40 | |
| parent | ebd98d5b7f0cb983e57c2e019d951ee98ebd1c9b (diff) | |
update state id if null
| -rw-r--r-- | indoteknik_api/models/res_users.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/models/res_users.py b/indoteknik_api/models/res_users.py index 52a044dc..77aeeef7 100644 --- a/indoteknik_api/models/res_users.py +++ b/indoteknik_api/models/res_users.py @@ -72,7 +72,7 @@ class ResUsers(models.Model): data['state_id'] = { 'id': user.state_id.id, 'name': user.state_id.name - } or None + } or 0 if user.kota_id: data['city'] = { |
