Define a get_absolute_url()
method on NetBoxModel
#16546
Labels
status: accepted
This issue has been accepted for implementation
type: housekeeping
Changes to the application which do not directly impact the end user
Milestone
Proposed Changes
Add a
get_absolute_url()
method on NetBoxModel to dynamically return the appropriate URL based on the model'sapp_label
andmodel_name
Meta attributes:Justification
The vast majority of models in NetBox declare this method explicitly. Moving it to NetBoxModel allows us to remove boilerplate code while still permitting customization on individual models.
The text was updated successfully, but these errors were encountered: