Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Templates): render text field as jinja2 template #595

Merged
merged 2 commits into from
May 21, 2024

Conversation

herrtxbias
Copy link
Member

@herrtxbias herrtxbias commented May 21, 2024

Fixes #593

@herrtxbias herrtxbias merged commit 7bafde4 into main May 21, 2024
4 checks passed
@herrtxbias herrtxbias deleted the feat/template-variables branch May 21, 2024 17:19
@Phhere
Copy link

Phhere commented Jun 21, 2024

Hi,

the feature does not work as planned.
When you try to create an maintenance or inciecent from such an template, the we get an exception

ValueError at /dashboard/maintenances/add/

"<Maintenance: >" needs to have a value for field "id" before this many-to-many relationship can be used.

Request Method: 	GET
Request URL: 	http://127.0.0.1:8001/dashboard/maintenances/add/?template=1
Django Version: 	4.2.13
Exception Type: 	ValueError
Exception Value: 	

"<Maintenance: >" needs to have a value for field "id" before this many-to-many relationship can be used.

Exception Location: 	/opt/statuspage/venv/lib/python3.11/site-packages/django/db/models/fields/related_descriptors.py, line 1022, in __init__

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Placeholders in Templates
2 participants