Project

General

Profile

« Previous | Next » 

Revision b93b5302

Added by Mikaël Ates almost 10 years ago

actes: act saving does not care about event and event canceling, if necessary check elsewhere.

View differences:

calebasse/actes/models.py
227 227
    # END Specific to sessad healthcare
228 228

  
229 229
    def save(self, *args, **kwargs):
230
        if self.parent_event and not self.parent_event.canceled:
231
            super(Act, self).save(*args, **kwargs)
230
        super(Act, self).save(*args, **kwargs)
232 231

  
233 232
    def duration(self):
234 233
        '''Return a displayable duration for this field.'''

Also available in: Unified diff