From 7326ac9da3c16039aa6a8c725b81515a6f371991 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Mon, 24 Nov 2014 16:04:10 +0700 Subject: [PATCH] util --- netforce_clinic/models/cycle_item.py | 2 +- netforce_clinic/models/utils.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/netforce_clinic/models/cycle_item.py b/netforce_clinic/models/cycle_item.py index 022d23c..0242a26 100644 --- a/netforce_clinic/models/cycle_item.py +++ b/netforce_clinic/models/cycle_item.py @@ -130,7 +130,7 @@ class CycleItem(Model): 'cycle_id': obj.cycle_id.id, 'personal_id': nurse.id, 'level_id': nurse.level_id.id, - 'rate': levels[level.id] or 0.0, + 'rate': levels.get(level.id, 0.0), 'type': 'nurse', 'qty': 1, })) diff --git a/netforce_clinic/models/utils.py b/netforce_clinic/models/utils.py index c0a3067..36cc910 100644 --- a/netforce_clinic/models/utils.py +++ b/netforce_clinic/models/utils.py @@ -15,9 +15,9 @@ PATIENT_TYPE={ } PERSONAL_TYPE={ - 'doctor': 'Doctor', - 'nurse': 'Nurse', - 'personal': 'Personal', + 'doctor': 'แพทย์', + 'nurse': 'พยาบาล', + 'personal': 'ทั่วไป', } TOPICS={