Project

General

Profile

« Previous | Next » 

Revision d09349e5

Added by Mikaël Ates over 12 years ago

dossiers: do not ignore first actvalidatestate when state_name is not NON_VALIDE.

View differences:

calebasse/dossiers/views.py
253 253
        ctx['next_rdvs'] = []
254 254
        for act in Act.objects.next_acts(ctx['object']).select_related():
255 255
            state = act.get_state()
256
            if not state.previous_state:
256
            if not state.previous_state and state.state_name == 'NON_VALIDE':
257 257
                state = None
258 258
            ctx['next_rdvs'].append((act, state))
259 259
        ctx['last_rdvs'] = []
260 260
        for act in Act.objects.last_acts(ctx['object']):
261 261
            state = act.get_state()
262
            if not state.previous_state:
262
            if not state.previous_state and state.state_name == 'NON_VALIDE':
263 263
                state = None
264 264
            ctx['last_rdvs'].append((act, state))
265 265
        ctx['status'] = []

Also available in: Unified diff