Révision 97fbc132
Ajouté par Mikaël Ates il y a plus de 9 ans
calebasse/dossiers/views.py | ||
---|---|---|
863 | 863 |
patient_records = [] |
864 | 864 |
for patient_record in paginate_patient_records: |
865 | 865 |
current_state = patient_record.get_current_state() or patient_record.get_state() |
866 |
state = current_state.status.name |
|
867 |
state_class = current_state.status.type.lower() |
|
868 | 866 |
deficiencies = [getattr(patient_record, field) \ |
869 | 867 |
for field in self.model.DEFICIENCY_FIELDS] |
870 | 868 |
anap = any(deficiencies) |
... | ... | |
883 | 881 |
patient_records.append( |
884 | 882 |
{ |
885 | 883 |
'object': patient_record, |
886 |
'state': state, |
|
887 |
'state_class': state_class, |
|
884 |
'state': current_state, |
|
888 | 885 |
'anap': anap, |
889 | 886 |
'mises': mises, |
890 | 887 |
'next_rdv_date': next_rdv_datetime, |
Formats disponibles : Unified diff
dossiers: add state date on quotation page and a bit of refactoring (fixes #5977).