mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Convert units to SimpleArrayField
This commit is contained in:
parent
947affd78f
commit
049da81bf2
@ -845,9 +845,10 @@ class RackReservationCSVForm(forms.ModelForm):
|
|||||||
rack_name = forms.CharField(
|
rack_name = forms.CharField(
|
||||||
help_text="Rack name"
|
help_text="Rack name"
|
||||||
)
|
)
|
||||||
units = forms.CharField(
|
units = SimpleArrayField(
|
||||||
|
base_field=forms.IntegerField(),
|
||||||
required=True,
|
required=True,
|
||||||
help_text='Rack units'
|
help_text='Comma-separated list of individual unit numbers'
|
||||||
)
|
)
|
||||||
tenant = forms.ModelChoiceField(
|
tenant = forms.ModelChoiceField(
|
||||||
queryset=Tenant.objects.all(),
|
queryset=Tenant.objects.all(),
|
||||||
|
Loading…
Reference in New Issue
Block a user