Project

General

Profile

« Previous | Next » 

Revision e3a19c55

Added by Benjamin Dauvergne over 12 years ago

agenda: fix validation of acts for fresh acts

View differences:

calebasse/agenda/views.py
262 262
        acts_of_the_day = self.acts_of_the_day()
263 263
        actes = list()
264 264
        for act in acts_of_the_day:
265
            if not act.id:
266
                act.save()
265 267
            state = act.get_state()
266 268
            display_name = None
267 269
            if state :
......
269 271
                if not state.previous_state and state.state_name == 'NON_VALIDE':
270 272
                    state = None
271 273
            actes.append((act, state, display_name))
272
            if not act.id:
273
                act.save()
274 274
        validation_states = dict(VALIDATION_STATES)
275 275
        if self.service.name != 'CMPP' and \
276 276
                'ACT_DOUBLE' in validation_states:

Also available in: Unified diff