dossiers: simplify position computing in paginated waiting queue.

This commit is contained in:
Mikaël Ates 2013-07-04 16:26:35 +02:00
parent d634042835
commit 39dc1817bb
1 changed files with 0 additions and 3 deletions

View File

@ -945,10 +945,7 @@ class PatientRecordsWaitingQueueView(cbv.ListView):
all_patient_records):
patient_records = []
if paginate_patient_records:
first = paginate_patient_records[0]
position = 1
while first.id != all_patient_records[position - 1].id:
position += 1
for patient_record in paginate_patient_records:
while patient_record.id != all_patient_records[position - 1].id:
position += 1