fix: Rücksprung nach dem Erstellen einer Dokumentzuordnung korrigieren

This commit is contained in:
2026-07-22 11:21:04 +02:00
parent 59598fbd74
commit a5fbde2bd2
4 changed files with 9 additions and 3 deletions
+5
View File
@@ -110,6 +110,11 @@ class DocumentAssignment(NetBoxModel):
def __str__(self):
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):
return f"netbox_documentation/{instance.document_id}/{filename}"