Skip to content

Conversation

@matmair
Copy link
Contributor

@matmair matmair commented Jul 21, 2025

Follow up to #10051 - moves file name rending to the default rendering engine instead of jinja2
This might be breaking in some cases

@matmair matmair added this to the 1.0.0 milestone Jul 21, 2025
@matmair matmair self-assigned this Jul 21, 2025
@matmair matmair requested a review from SchrodingersGat as a code owner July 21, 2025 17:14
@netlify
Copy link

netlify bot commented Jul 21, 2025

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 069ed91
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/69067bb7bd6496000813a1be

@matmair
Copy link
Contributor Author

matmair commented Jul 21, 2025

@inventree/triage I can not remember why we used Jinja2 instead of the normal templating engine - this removes our direct dependency on jinja2. This be breaking in some edge cases

@SchrodingersGat
Copy link
Member

I have a vague recollection that it was due to how we provide context for simple string rendering (e.g. for batch codes, order reference strings, filenames for generated reports). It looks like that is where the PR is failing currently.

If we can work around this and get those string rendering functions working, I'm happy to remove the dep and make this change

@matmair matmair modified the milestones: 1.0.0, 0.17.15, 1.1.0 Jul 27, 2025
@matmair
Copy link
Contributor Author

matmair commented Jul 27, 2025

I will have to take a deeper look, puhsing this back

@SchrodingersGat
Copy link
Member

One difficulty here is that the jinja syntax we use in PART_NAME_FORMAT is incompatible with the django template syntax - so we will need to make a breaking change to that format string

@SchrodingersGat SchrodingersGat modified the milestones: 1.1.0, 1.2.0 Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants