fix: Löschbestätigung für Dokumentationen mit Anhängen reparieren
This commit is contained in:
1 parent
eb44cef6d0
commit
3d94a349b9
4 files changed
+9
-3
No files matched your search
@@ -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