Project

General

Profile

« Previous | Next » 

Revision 3ca3d1ff

Added by Benjamin Dauvergne over 12 years ago

agenda: remove EventWithAct.delete

View differences:

calebasse/agenda/models.py
394 394
        verbose_name=u'Convoqué')
395 395

  
396 396

  
397
    def delete(self, *args, **kwargs):
398
        if self.recurrence_periodicity is None:
399
            # clear all linked exceptions
400
            pass
401
        elif self.exception_to is not None:
402
            pass
403
        elif hasattr(self, 'parent'):
404
            pass
405
        else:
406
            # clear all linked exceptions
407
            pass
408
        super(EventWithAct, self).delete(*args, **kwargs)
409

  
410 397
    @property
411 398
    def act(self):
412 399
        return self.get_or_create_act()

Also available in: Unified diff