From 049da81bf2cf95203e280204385a8bd720387a8d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 9 Mar 2020 12:46:12 -0400 Subject: [PATCH] Convert units to SimpleArrayField --- netbox/dcim/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index b0cb8434f..ac8fc40d5 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -845,9 +845,10 @@ class RackReservationCSVForm(forms.ModelForm): rack_name = forms.CharField( help_text="Rack name" ) - units = forms.CharField( + units = SimpleArrayField( + base_field=forms.IntegerField(), required=True, - help_text='Rack units' + help_text='Comma-separated list of individual unit numbers' ) tenant = forms.ModelChoiceField( queryset=Tenant.objects.all(),