fix: render tenancy fields in license form

Define an explicit tenancy fieldset and bump the package version to 1.9.1 so Git/Pip upgrades replace older installations.
This commit is contained in:
2026-07-24 15:34:01 +02:00
parent e1c817229b
commit 7ca670c717
5 changed files with 45 additions and 2 deletions
+23
View File
@@ -24,6 +24,29 @@ from utilities.forms.widgets import APISelect, DatePicker
class SoftwareLicenseForm(NetBoxModelForm):
comments = CommentField()
fieldsets = (
FieldSet(
"name",
"description",
"software_product",
"version",
"installation",
name="Software License",
),
FieldSet("tenant_group", "tenant", name="Tenancy"),
FieldSet(
"type",
"spdx_expression",
"stored_location",
"stored_location_url",
"start_date",
"expiration_date",
"support",
"license_amount",
name="License Details",
),
FieldSet("tags", name="Tags"),
)
spdx_expression = ChoiceField(required=False, choices=spdx_license_names(), label="SPDX expression")
stored_location_url = LaxURLField(required=False)