Replace "obj" context var with "object" for custom links #8684
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
NetBox version
v3.1.8
Feature type
Change to existing functionality
Proposed functionality
Direct users to use
object
in custom link text and URL templates instead ofobj
. Both variables will be supported until NetBox v3.5, which will remove support for the oldobj
variable.Use case
object
is a more natural name for the variable.obj
was originally chosen (perhaps without much consideration) because it matched the underlying code.object
is a reserved word in Python, but there is no technical reason not to use it in Jinja2 templates.Database changes
No response
External dependencies
No response
The text was updated successfully, but these errors were encountered: