diff --git a/README.md b/README.md index d028787..c545c2b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Ein in NetBox integriertes Markdown-Wiki für Betriebsdokumentationen und Anleit ## Kompatibilität -Die Version `0.9.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. +Die Version `0.9.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. ## Installation diff --git a/netbox_documentation/__init__.py b/netbox_documentation/__init__.py index 4eb9a03..215cb95 100644 --- a/netbox_documentation/__init__.py +++ b/netbox_documentation/__init__.py @@ -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" diff --git a/netbox_documentation/forms.py b/netbox_documentation/forms.py index f40d9a6..cb62452 100644 --- a/netbox_documentation/forms.py +++ b/netbox_documentation/forms.py @@ -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"),) diff --git a/pyproject.toml b/pyproject.toml index 82f6cff..59fdcc0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "netbox-documentation" -version = "0.9.1" +version = "0.9.2" description = "Integrated Markdown wiki and office document importer for NetBox" readme = "README.md" requires-python = ">=3.10"