Project

General

Profile

« Previous | Next » 

Revision 8fa0047b

Added by Benjamin Dauvergne about 12 years ago

agenda: when monkey patching save() on Act, restore the original method after execution, fixes #2460

View differences:

calebasse/agenda/models.py
493 493
        self.init_act(act)
494 494
        old_save = act.save
495 495
        def save(*args, **kwargs):
496
            act.save = old_save
496 497
            old_save(*args, **kwargs)
497 498
            act.doctors = self.participants.select_subclasses()
498 499
            ActValidationState.objects.create(act=act, state_name='NON_VALIDE',

Also available in: Unified diff