Skip to content

Fix partial rendered before its template's first render - #5

Merged
MasonLyons merged 2 commits into
mainfrom
claude/gracious-bouman-84df07
Oct 17, 2026
Merged

MasonLyons merged 2 commits into
mainfrom
claude/gracious-bouman-84df07

Conversation

@MasonLyons

Copy link
Copy Markdown
Owner

Reading Template.extra_data now backfills each PartialTemplate._template, so from_string(...).extra_data["partials"]["p"].render(ctx) works before the template has been rendered (previously AttributeError; stock Django returns the body). Adds a parity test; bumps to 0.3.2.

🤖 Generated with Claude Code

MasonLyons and others added 2 commits October 17, 2026 22:57
A partial fetched via Template.extra_data before the first render had no
owning Template, so rendering it raised AttributeError.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@MasonLyons
MasonLyons merged commit 686481f into main Oct 17, 2026
15 checks passed
@MasonLyons
MasonLyons deleted the claude/gracious-bouman-84df07 branch October 18, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant