0.2.62 (2026-07-14)¶
Normalize embedded ICC profiles to compact sRGB for gallery thumbnail renditions by default using a new reusable
srgbWagtail image operation. Uploaded originals, regular image renditions, and gallery modal/full-size renditions keep their existing color handling; sites can disable the thumbnail policy withCAST_GALLERY_THUMBNAIL_RENDITIONS_SRGB = False. Gallery rendering falls back to the existing sRGB/non-sRGB counterpart rendition during policy rollouts, preventing empty thumbnail URLs before synchronization. Runsync_renditionsonce after deploying a policy change so new thumbnail rendition keys are generated and matching previous thumbnail color-profile keys are cleaned up safely.Add
CAST_COMMENTS_AUTHOR_EDIT_WINDOWto optionally cap anonymous comment author edit/delete eligibility by comment age; the default0preserves the existing session-bound behavior.Remove django-cast’s built-in
headingStreamField block. This is a breaking change for third-party installs: author multi-level headings inparagraphrich text (<h2>/<h3>/<h4>) going forward. The upgrade migrations automatically convert existing storedheadingblocks in live bodies and page revisions acrossPost,Episode,HomePage, andPostsubclasses to<h2>rich-text paragraphs; consumers that reference the built-inheadingblock in fixtures or newly-created content should migrate those payloads toparagraphrich text before upgrading.Set
TERM=xterm-256colorinside tox test environments so local runs launched from Ghostty do not print missingxterm-ghosttyterminfo warnings.Constrain installed package dependencies to each tox matrix environment’s Django and Wagtail factors, preventing the package-dependency installation phase from silently replacing a tested framework version.
Refresh the frontend lockfile and committed bundles with the latest compatible Vite and Vitest patch releases.
Point the test settings’ extra static files directory at the shipped
src/cast/statictree so tox migrations no longer emit Django’sstaticfiles.W004warning.Allow editor API post and episode draft
PATCHrequests to send the optimistic concurrency token as a strictIf-Match: "<revision id>"header instead of JSONbase_revision_id.Let the editor API create, read, and update Wagtail’s
seo_titleandsearch_descriptionPromote-tab fields for posts and episodes.Give the built-in Bootstrap 4 and plain post/episode templates complete, non-empty search/social metadata: canonical URLs, title/description fallbacks, cover-dependent Twitter cards, conditional image tags, article publication and modification timestamps,
og:site_name, andBlogPosting/PodcastEpisodeJSON-LD. External themes must opt into the new shared partial separately.Let the editor API round-trip custom
Post.bodyblocks configured throughCAST_POST_BODY_BLOCKSfor theiroverviewordetailsection. CustomListBlockvalues use the author-facing list shape instead of Wagtail’s internaltype: itemwrappers, and invalid custom values are reported through the normal editor validation envelope.Avoid deep-copying Podlove and DOTe transcript JSON during public speaker sanitization when all speaker labels are already public or when the transcript contains no speaker metadata.
Fix
Blog.last_build_datecrashing withIndexErroron blogs and podcasts without any published posts; it now falls back to the page’s first publication date or the current time, so feeds for empty blogs render.Fix the podcast feed’s RSS
<category>element: it now emits the first entry of the blog’skeywordsfield when keywords are set (the previous guard checked a nonexistentcategoriesattribute and always produced an empty category).Declare explicit
permission_classes = (AllowAny,)on the public API views (Podlove detail, player config, facet counts, theme list, theme update) so intended anonymous access no longer depends on the DRF project default and cannot be broken by a host site setting restrictive default permissions.Remove dead tooling files (
bootstrap.md,.travis.yml,setup.cfg,runtests.py,javascript/jest.config.js,command_lines.txt); thecommands.pytestandmypysubcommands now invoke pytest and the configured mypy directly.Stop pinning the
pytest-randomlyseed so the test order actually randomizes, and fix the two test-isolation bugs this surfaced (a shared API client leaking session cookies between tests, and a monkeypatchedUSE_THREADEDCOMMENTSbaking the wrong comment form base class when the forms module was first imported under the patch).Clean up packaging and type-check metadata: drop the contradictory MIT license classifier and a duplicated classifier, check types against Python 3.11 (the support floor), and remove the legacy mypy django-stubs plugin table.
Make
Post.get_descriptionside-effect free: the feed/social-card body template is now passed as a rendering argument instead of being stored on the instance, so a post or episode rendered after its description was generated no longer leaks thepost_body.htmlpartial into the full page render.Wrap
Video.saveposter generation in a transaction likeAudio.save, so a failed poster derivation no longer leaves a half-saved video row.Add
sync_mediaandcreate_renditionskeyword arguments toPost.save(both defaultTrue) so bulk operations and migrations can skip media-derivation side effects explicitly.Move the
HtmxHttpRequesttyping class tocast.http_types; it stays importable fromcast.viewsandcast.views.htmx_helpersfor backwards compatibility.Eliminate per-row queries when building blog index snapshots for mixed post/episode listings: page specialization and episode audio now load in bulk, so the query count no longer grows with the number of episodes, and a regression test guards the flat query count.
Deduplicate the audio/video/transcript Wagtail-admin media views: the previously triplicated
index/add/edit/delete/chooser/chosen/chooser_uploadviews now share one parametrized implementation incast.views.media. URL names, templates, contexts, messages, and chooser modal workflows are unchanged.Fix the video chooser upload view ignoring the
CAST_CHOOSER_PAGINATIONsetting: it paginated with a hardcoded page size of 10 instead ofCHOOSER_PAGINATIONlike every other chooser view (invisible under the default of 10, wrong for sites that override the setting).Extract the transcript domain into a new
cast.transcriptspackage: the WebVTT/Podlove/DOTe rewrite logic, speaker-sample selection, voice-reference derivation, and known-speaker handling now live in Django-free per-format modules plus a service layer, and theTranscriptmodel keeps its public API as thin delegates. Public names such astime_to_seconds,convert_dote_to_podcastindex_transcript, and theKNOWN_SPEAKER_*constants remain importable fromcast.models.transcript.Refactor the transcript admin edit view to dispatch its POST actions through a declarative action→handler map, and deduplicate the
episode_from_latest_revisionhelper that was copied between the transcript and Voxhelm admin views. Messages, redirects, and form behavior are unchanged.Centralize the static
CAST_*setting defaults in a single registry incast.appsettings: the scattered inlinegetattr(settings, ...)defaults now resolve through one accessor (still read at call time, sooverride_settingsand runtime changes keep working), and thecast.E001type check derives from the registry instead of a separately maintained table. Defaults and check coverage are unchanged.Document all previously undocumented settings in the settings reference, including
CAST_AUDIO_PLAYER,CAST_EDITOR_SCOPES,CAST_POST_BODY_BLOCKS, the comment form CSS-class and moderator settings, and the remaining styleguide tunables.Split the Voxhelm integration into a
cast.voxhelmsubpackage with dedicatedsettings(the site → Django setting → environment precedence chain),client(HTTP transport),task_refs, andservice(orchestration) modules. The transcript-generation status helpers move tocast.transcripts.generation_status, which removes the circular import betweencast.modelsand the Voxhelm code (a static test now guards that nothing imported during model initialisation depends oncast.voxhelm). Every previously public name remains importable fromcast.voxhelm.Show the “Generate transcript” action on the episode and audio edit pages only when Voxhelm is actually configured (API base and key resolvable via site settings, Django settings, or environment variables) for the request’s site. Transcript generation status stays visible regardless, and direct POST requests keep reporting missing configuration as friendly error messages.
Deduplicate
feeds.py: the shareditem_description/item_link/item_pubdatemethods and the Atom stylesheetwrite()now live in one place, the iTunes/Podcast-Index generator mixins are statically typed (no more# type: ignoreor defensivetry/except), and podcast feed XML output is unchanged.Complete the strict mypy annotation rollout. The configured mypy source set now enables both
disallow_incomplete_defsanddisallow_untyped_defsglobally after the final blocks, page model, and styleguide slices reached clean project-level probes.Blog (non-podcast) RSS and Atom feeds now emit a stable per-entry identifier and publication dates: RSS items gain
<pubDate>and a<guid isPermaLink="false">set to the post’s UUID, and Atom entries gain<updated>and a UUID<id>. Feed readers may show existing blog entries as new once, after which the UUID identifier survives slug and URL changes.Document
cast.api.viewsas a frozen legacy API surface (including the bare-textPOST /api/upload_video/response); new integrations should use the editor API for structured errors, scoped authorization, andIf-Matchrevision handling.Stop shipping test-only settings in the installed package. The former
cast.settingsmodule (committedSECRET_KEY,tests.urlsroot URLconf, MD5 hasher) now lives entirely intests/settings.py, anddev_settings.pyis renamed todev_tools.pyto reflect its role as a feature-flag resolver rather than a settings module.django-environis dropped from the dependencies. This is an internal packaging change with no effect on configuring a real django-cast site.Give the repository cache serialization an explicit
typediscriminator instead of guessing a cached object’s class from which keys are present. Blog/podcast and post/episode entries now record their type and deserialize by it, with a fallback that keeps entries cached by earlier versions working.Generate
django-cast-quickstartproject files from packaged templates instead of large inline Python strings, and add a smoke test that the generated project passes Django’s system check. The quickstart command’s user-visible behavior is unchanged.Emit inline Podlove Simple Chapters in podcast RSS and Atom feeds for episodes with chapter marks, while leaving chapterless feed XML unchanged.
Add Podcasting 2.0 external chapters JSON documents and feed references via
podcast:chaptersusingapplication/json+chaptersendpoints.Document tags and categories as supported, default-on content-organization primitives and drop the “beta / not yet implemented” framing around faceted navigation. The recommended model is categories for a small, stable set of groupings and tags for many, fast-changing labels; both power the blog and podcast list-page facets. This is a documentation and test-coverage change only — no behavior, setting, or schema change for existing sites.