add shredder mixins

This commit is contained in:
Mira Weller
2024-06-24 16:03:16 +02:00
parent 2045009e2e
commit a94c89ba4f
2 changed files with 12 additions and 1 deletions

View File

@@ -323,3 +323,13 @@ class TaxRuleLogEntryType(EventLogEntryType):
object_link_wrapper = _('Tax rule {val}')
object_link_viewname = 'control:event.settings.tax.edit'
object_link_argname = 'rule'
class NoOpShredderMixin:
def shred_pii(self, logentry):
pass
class ClearDataShredderMixin:
def shred_pii(self, logentry):
logentry.data = None