1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #4360: Drop support for the Django template language in export templates

This commit is contained in:
Jeremy Stretch
2020-08-21 11:16:30 -04:00
parent 2339fe22ae
commit d1071b79e3
7 changed files with 29 additions and 37 deletions

View File

@ -198,11 +198,6 @@ class ExportTemplateForm(forms.ModelForm):
class Meta:
model = ExportTemplate
exclude = []
help_texts = {
'template_language': "<strong>Warning:</strong> Support for Django templating will be dropped in NetBox "
"v2.10. <a href=\"https://jinja.palletsprojects.com\">Jinja2</a> is strongly "
"recommended."
}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@ -219,7 +214,7 @@ class ExportTemplateAdmin(admin.ModelAdmin):
'fields': ('content_type', 'name', 'description', 'mime_type', 'file_extension')
}),
('Content', {
'fields': ('template_language', 'template_code'),
'fields': ('template_code',),
'classes': ('monospace',)
})
)