fix: Rücksprung nach dem Erstellen einer Dokumentzuordnung korrigieren
This commit is contained in:
@@ -10,6 +10,7 @@ Ein in NetBox integriertes Markdown-Wiki für Betriebsdokumentationen und Anleit
|
|||||||
- Breite Editoransicht und Fokusmodus innerhalb des NetBox-Layouts
|
- Breite Editoransicht und Fokusmodus innerhalb des NetBox-Layouts
|
||||||
- Bilder direkt vom eigenen Gerät in die Dokumentation hochladen
|
- Bilder direkt vom eigenen Gerät in die Dokumentation hochladen
|
||||||
- Eine Dokumentation mehreren Objekten zuordnen und umgekehrt
|
- Eine Dokumentation mehreren Objekten zuordnen und umgekehrt
|
||||||
|
- Unbegrenzt viele Objektzuordnungen pro Dokumentation; nur identische Doppelzuordnungen werden verhindert
|
||||||
- Unterstützte Standardobjekte: Region, Standort, Location, Rack, Gerät, VM, VM-Cluster und Mandant/Kunde
|
- Unterstützte Standardobjekte: Region, Standort, Location, Rack, Gerät, VM, VM-Cluster und Mandant/Kunde
|
||||||
- DOCX, XLSX/XLSM, textbasierte PDF-, Markdown- und Textdateien importieren
|
- DOCX, XLSX/XLSM, textbasierte PDF-, Markdown- und Textdateien importieren
|
||||||
- Originaldatei optional zusammen mit der Dokumentation aufbewahren
|
- Originaldatei optional zusammen mit der Dokumentation aufbewahren
|
||||||
@@ -18,7 +19,7 @@ Ein in NetBox integriertes Markdown-Wiki für Betriebsdokumentationen und Anleit
|
|||||||
|
|
||||||
## Kompatibilität
|
## Kompatibilität
|
||||||
|
|
||||||
Die Version `0.3.0` 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.1` 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
|
## Installation
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ class DocumentationConfig(PluginConfig):
|
|||||||
name = "netbox_documentation"
|
name = "netbox_documentation"
|
||||||
verbose_name = "Dokumentation"
|
verbose_name = "Dokumentation"
|
||||||
description = "Wiki und Office-Dokumentation direkt in NetBox"
|
description = "Wiki und Office-Dokumentation direkt in NetBox"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
author = "NetBox Documentation Contributors"
|
author = "NetBox Documentation Contributors"
|
||||||
base_url = "documentation"
|
base_url = "documentation"
|
||||||
min_version = "4.0.0"
|
min_version = "4.0.0"
|
||||||
|
|||||||
@@ -110,6 +110,11 @@ class DocumentAssignment(NetBoxModel):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.document} → {self.assigned_object}"
|
return f"{self.document} → {self.assigned_object}"
|
||||||
|
|
||||||
|
def get_absolute_url(self):
|
||||||
|
# No separate detail page exists for an assignment. NetBox's generic
|
||||||
|
# edit view nevertheless needs a valid URL for its success message.
|
||||||
|
return reverse("plugins:netbox_documentation:documentassignment_list")
|
||||||
|
|
||||||
|
|
||||||
def attachment_upload_path(instance, filename):
|
def attachment_upload_path(instance, filename):
|
||||||
return f"netbox_documentation/{instance.document_id}/{filename}"
|
return f"netbox_documentation/{instance.document_id}/{filename}"
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "netbox-documentation"
|
name = "netbox-documentation"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
description = "Integrated Markdown wiki and office document importer for NetBox"
|
description = "Integrated Markdown wiki and office document importer for NetBox"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
|
|||||||
Reference in New Issue
Block a user