From 160aefa860a88aa5237b81116c60196df9aabdfa Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Fri, 8 Jan 2016 08:18:00 +0700 Subject: [PATCH] no sort nurse --- netforce_clinic/models/report_cycle_item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netforce_clinic/models/report_cycle_item.py b/netforce_clinic/models/report_cycle_item.py index aab3cba..ce6517f 100644 --- a/netforce_clinic/models/report_cycle_item.py +++ b/netforce_clinic/models/report_cycle_item.py @@ -298,7 +298,7 @@ class ReportCycleItem(Model): no+=1 nlines[index]['date_txt']=date_txt nlines[index]['cseq_txt']=cseq_txt - for nurse_item in sorted(nurse_items,key=lambda nitem: nitem['nfirst_name']): + for nurse_item in nurse_items: nlines[index].update({ 'nurse': nurse_item['nurse'], 'nfirst_name': nurse_item['nfirst_name'],