Update src/pretix/base/models/mail.py

Co-authored-by: Martin Gross <gross@rami.io>
This commit is contained in:
Raphael Michel
2026-01-29 09:20:35 +01:00
committed by GitHub
parent ff1993a95a
commit ddb7b57e66

View File

@@ -91,7 +91,7 @@ class OutgoingMail(models.Model):
# e.g. the event or order is deleted, we want SET_NULL behavior. However, in that case, the email # e.g. the event or order is deleted, we want SET_NULL behavior. However, in that case, the email
# would be an "orphan" forever and there's no way to remove the personal information. # would be an "orphan" forever and there's no way to remove the personal information.
# We try to find a middle-ground with the following behaviour: # We try to find a middle-ground with the following behaviour:
# - The email is always deleted if the entire organize or user is deleted # - The email is always deleted if the entire organizer or user is deleted
# - The email is always deleted if it has not yet been sent # - The email is always deleted if it has not yet been sent
# - The email is kept in all other cases # - The email is kept in all other cases
# This is only an acceptable trade-off since emails are stored for a short period only, and because # This is only an acceptable trade-off since emails are stored for a short period only, and because