Projet

Général

Profil

« Précédent | Suivant » 

Révision c4d2d185

Ajouté par Serghei Mihai il y a presque 10 ans

actes: an act is saved only if its event is not canceled

Closes #4075

Voir les différences:

calebasse/actes/models.py
221 221
    # END Specific to sessad healthcare
222 222

  
223 223
    def save(self, *args, **kwargs):
224
        super(Act, self).save(*args, **kwargs)
224
        if self.parent_event and not self.parent_event.canceled:
225
            super(Act, self).save(*args, **kwargs)
225 226

  
226 227
    def duration(self):
227 228
        '''Return a displayable duration for this field.'''

Formats disponibles : Unified diff