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

Export_templates mime_type when imported from Git server #561

Closed
gmoisio opened this issue Jun 11, 2021 · 1 comment
Closed

Export_templates mime_type when imported from Git server #561

gmoisio opened this issue Jun 11, 2021 · 1 comment
Labels
type: feature Introduction of new or enhanced functionality to the application

Comments

@gmoisio
Copy link

gmoisio commented Jun 11, 2021

Environment

  • Python version: 3.8.1
  • Nautobot version: v1.0.2

Proposed Functionality

Unlike the creation of export_templates in the Nautobot GUI interface, when using synchronization with a Git server, the mime_type is forced to text / plain which does not allow html exports to be made.

Use Case

To build nice html5 exports, they must be flagged with text/html mime type.
It would perharps be possible to get mime type from extension or prefix in a name such as export_templates/ipam/vlan/html_export.html

Thanks
Regards

@glennmatthews glennmatthews added the type: feature Introduction of new or enhanced functionality to the application label Jun 11, 2021
@smk4664
Copy link
Contributor

smk4664 commented Jun 11, 2021

@gmoisio There is a PR in for this that is targeting 1.1.0. The mime_type will be selected from the file extension.

jathanism added a commit that referenced this issue Jun 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Introduction of new or enhanced functionality to the application
Projects
None yet
Development

No branches or pull requests

3 participants