diff --git a/README.md b/README.md index 6d458ee..34b7919 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Ein in NetBox integriertes Markdown-Wiki für Betriebsdokumentationen und Anleit ## Kompatibilität -Die Version `0.3.2` zielt auf NetBox 4.x (mindestens 4.0). Vor einem produktiven Rollout sollte das Plugin gegen die konkret eingesetzte NetBox-Minor-Version in einer Testinstanz geprüft werden. +Die Version `0.3.3` zielt auf NetBox 4.x (mindestens 4.0). Vor einem produktiven Rollout sollte das Plugin gegen die konkret eingesetzte NetBox-Minor-Version in einer Testinstanz geprüft werden. ## Installation diff --git a/netbox_documentation/__init__.py b/netbox_documentation/__init__.py index e165d22..f8c684c 100644 --- a/netbox_documentation/__init__.py +++ b/netbox_documentation/__init__.py @@ -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" diff --git a/netbox_documentation/models.py b/netbox_documentation/models.py index 65786f8..1fa362b 100644 --- a/netbox_documentation/models.py +++ b/netbox_documentation/models.py @@ -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() diff --git a/pyproject.toml b/pyproject.toml index ea7e4cb..7f4b373 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "netbox-documentation" -version = "0.3.2" +version = "0.3.3" description = "Integrated Markdown wiki and office document importer for NetBox" readme = "README.md" requires-python = ">=3.10"