mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Django templating language is no longer supported for export templates
This commit is contained in:
parent
2fba20acda
commit
dc6e7cd56c
@ -4,10 +4,7 @@ NetBox allows users to define custom templates that can be used when exporting o
|
|||||||
|
|
||||||
Each export template is associated with a certain type of object. For instance, if you create an export template for VLANs, your custom template will appear under the "Export" button on the VLANs list.
|
Each export template is associated with a certain type of object. For instance, if you create an export template for VLANs, your custom template will appear under the "Export" button on the VLANs list.
|
||||||
|
|
||||||
Export templates may be written in Jinja2 or [Django's template language](https://docs.djangoproject.com/en/stable/ref/templates/language/), which is very similar to Jinja2.
|
Export templates must be written in [Jinja2](https://jinja.palletsprojects.com/).
|
||||||
|
|
||||||
!!! warning
|
|
||||||
Support for Django's native templating logic will be removed in NetBox v2.10.
|
|
||||||
|
|
||||||
The list of objects returned from the database when rendering an export template is stored in the `queryset` variable, which you'll typically want to iterate through using a `for` loop. Object properties can be access by name. For example:
|
The list of objects returned from the database when rendering an export template is stored in the `queryset` variable, which you'll typically want to iterate through using a `for` loop. Object properties can be access by name. For example:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user