feat: Mandantenauswahl nach Mandantengruppe filtern

This commit is contained in:
2026-07-29 10:28:52 +02:00
parent 2af5ea997d
commit 117ffac210
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ class DocumentationConfig(PluginConfig):
name = "netbox_documentation"
verbose_name = "NetBox Dokumentation"
description = "Wiki und Office-Dokumentation direkt in NetBox"
version = "0.9.1"
version = "0.9.2"
author = "LKE"
base_url = "documentation"
min_version = "4.0.0"
+2
View File
@@ -48,6 +48,7 @@ class DocumentForm(NetBoxModelForm):
)
tenant = DynamicModelChoiceField(
queryset=Tenant.objects.all(), required=False, selector=True, label="Mandant",
query_params={"group_id": "$tenant_group"},
)
fieldsets = (
@@ -154,6 +155,7 @@ class DocumentCategoryForm(NetBoxModelForm):
)
tenant = DynamicModelChoiceField(
queryset=Tenant.objects.all(), required=False, selector=True, label="Mandant",
query_params={"group_id": "$tenant_group"},
)
fieldsets = (FieldSet("name", "slug", "parent", "tenant_group", "tenant", "description", "tags", name="Ordner"),)