# Mass delete command
* introduces new command for mass deleting entries based on specific pattern in identifier
* command guides user through parameter collecting process
This commit is contained in:
@@ -325,8 +325,8 @@ class Compensation(AbstractCompensation, CEFMixin, CoherenceMixin, PikMixin):
|
||||
self.identifier = self.generate_new_identifier()
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
def mark_as_deleted(self, user, send_mail: bool = True):
|
||||
super().mark_as_deleted(user, send_mail)
|
||||
def mark_as_deleted(self, user, send_mail: bool = True, comment: str|None = None):
|
||||
super().mark_as_deleted(user, send_mail, comment)
|
||||
if user is not None:
|
||||
self.intervention.mark_as_edited(user, edit_comment=COMPENSATION_REMOVED_TEMPLATE.format(self.identifier))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user