Skip to content

Fix NoneType encode error when rendering VM panels#164

Open
natecohen wants to merge 1 commit into
DanSheps:mainfrom
natecohen:fix/template-content
Open

Fix NoneType encode error when rendering VM panels#164
natecohen wants to merge 1 commit into
DanSheps:mainfrom
natecohen:fix/template-content

Conversation

@natecohen

@natecohen natecohen commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Move the invocation of get_context() to the beginning of the _render_contract_card and _render_license_card methods in template_content.py.

These methods accessed self.model_name and self.field_name before get_context() had run.

Move the invocation of `get_context()` to the beginning of render methods
@natecohen

Copy link
Copy Markdown
Contributor Author

Sorry, I forgot to add an issue to this first - #165

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