fix: Löschbestätigung für Dokumentationen mit Anhängen reparieren
This commit is contained in:
@@ -5,7 +5,7 @@ class DocumentationConfig(PluginConfig):
|
||||
name = "netbox_documentation"
|
||||
verbose_name = "Dokumentation"
|
||||
description = "Wiki und Office-Dokumentation direkt in NetBox"
|
||||
version = "0.3.2"
|
||||
version = "0.3.3"
|
||||
author = "NetBox Documentation Contributors"
|
||||
base_url = "documentation"
|
||||
min_version = "4.0.0"
|
||||
|
||||
@@ -135,3 +135,9 @@ class DocumentAttachment(NetBoxModel):
|
||||
|
||||
def __str__(self):
|
||||
return self.original_name
|
||||
|
||||
def get_absolute_url(self):
|
||||
# Attachments are displayed on their parent document and intentionally
|
||||
# have no standalone detail view. This is also used by NetBox's delete
|
||||
# dependency collector when rendering the confirmation dialog.
|
||||
return self.document.get_absolute_url()
|
||||
|
||||
Reference in New Issue
Block a user