InvoiceShredder: Fix shredding of new fields (#6577)

* InvoiceShredder: Fix shredding of new fields

* Update src/pretix/base/migrations/0311_fix_unshredded_invoices.py
This commit is contained in:
Raphael Michel
2026-09-22 10:37:58 +02:00
committed by GitHub
parent 365051cc21
commit 29614db1e2
3 changed files with 76 additions and 12 deletions
+5 -2
View File
@@ -342,8 +342,11 @@ def test_invoice_shredder(event, order):
s.shred_data()
inv.refresh_from_db()
assert "Acme" not in inv.invoice_to
assert "icket" not in inv.lines.first().description
assert inv.invoice_to == "█"
assert inv.invoice_to_company == "█"
l = inv.lines.first()
assert l.description == "█"
assert l.attendee_name == "█"
assert not inv.file
assert not os.path.exists(fname)