Project

General

Profile

« Previous | Next » 

Revision 7f360e71

Added by Jérôme Schneider about 13 years ago

dossiers: order states by date (fix #2514)

View differences:

calebasse/dossiers/views.py
state = current_state.status.name
ctx['current_state'] = current_state
ctx['service_id'] = self.service.id
ctx['states'] = FileState.objects.filter(patient=self.object).filter(status__services=self.service)
ctx['states'] = FileState.objects.filter(patient=self.object) \
.filter(status__services=self.service) \
.order_by('-date_selected')
ctx['next_rdvs'] = []
Q = models.Q
today = date.today()

Also available in: Unified diff