-
-
Notifications
You must be signed in to change notification settings - Fork 858
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
Refactor label/report template copying #6582
Conversation
…matmair/issue2585
…matmair/issue2585
…refactor-labels
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
@matmair nice work, this will clean things up nicely for our future work |
@matmair Does this also fixes the bug that if I change an InvenTree provided template, it gets crated again and I end up with duplicate templates? |
@wolflu05 no, it is a pure internal refactor. The behaviour you describe is a more nuanced problem and will have to be discussed as the current way templates are handled (file based) has some problems when interacting with an API. |
Ok. Yeah that's right. |
This PR is a first step towards #5841 and will help with #6478.
It factors out the
ready()
function of thereport
andlabel
apps into a generic function that can also be used by plugins to ship their own default templating content.This does not change the functionality around templating and is only a refactor to get functionality into one place.