-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Expand Export Template to allow for non-attachment response #5830
Comments
I can take a stab at it if you assign it to me. |
I'm assuming this will require the addition of a new boolean field on the ExportTemplate model? In that case, this needs to be wait for a milestone assignment. It's a minor change though, obviously; we can tag it for v2.11. |
Will we manage to get this into 2.11? If needed I can try to work on this. |
@rodvand go for it! I would like to get the v2.11 beta out this week, though, if possible. Let me know if you'd rather me knock it out. We can either add a boolean field to control the content disposition header, or add it only when a file extension is set. |
…ers and admin view.
#5830: Expand ExportTemplate model with attachment choice
Environment
Proposed Functionality
Add an option to the Export Template functionality where it does not download the export template as an attachment, but instead presents it right away.
Use Case
Allow rendered content to be opened straight away. Currently I am generating a link using the Export Template and am required to open the downloaded attachment and click on the link to access the page. Being able to adjust this behaviour would make for a smoother workflow.
Database Changes
Boolean field on the ExportTemplate model for deciding whether to set the Content-Disposition to attachment. Suggests to set this default as True to keep the current workflow as standard.
External Dependencies
None
On my test instance I commented out the line
netbox/netbox/extras/models/models.py
Line 279 in 3d3748d
The text was updated successfully, but these errors were encountered: