v0.8.1 — HTML Email Preview + MySQL bulk_create fix
What's New
HTML Email Preview (#14)
Emails sent via EmailMultiAlternatives now show a Plain text / HTML preview tab switcher in the dashboard detail
panel. The HTML body renders in a sandboxed <iframe> — no external scripts, safe to use in any environment.
- Plain-text-only emails (
EmailMessage) are unaffected - HTML body capped at 100 KB during capture
BULK_CREATE_BATCH_SIZE config key (#19)
Fixes OperationalError: (2006, 'Server has gone away') on MySQL when a single request triggers a very large number
of SQL queries, exceeding max_allowed_packet.
ORBIT_CONFIG = {
"BULK_CREATE_BATCH_SIZE": 500, # None = original behaviour (default)
}
Setting this splits the internal bulk_create into batches. None keeps the original single-INSERT behaviour — no change
needed if you're not on MySQL or not hitting this error.
Install
pip install django-orbit==0.8.1
Docs
- HTML email preview: https://astro-stack.github.io/django-orbit/dashboard/#mail-html-preview
- BULK_CREATE_BATCH_SIZE: https://astro-stack.github.io/django-orbit/configuration/#bulk_create_batch_size