From a30816e964e31811bfab69797e4d8fddf2816e48 Mon Sep 17 00:00:00 2001 From: Jason Lavoie Date: Thu, 23 Sep 2021 21:39:58 -0400 Subject: [PATCH] Fixes #7358: Add missing choices field in custom fields CSV import --- netbox/extras/forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/extras/forms.py b/netbox/extras/forms.py index 4a4f95213..183dea3f6 100644 --- a/netbox/extras/forms.py +++ b/netbox/extras/forms.py @@ -50,8 +50,7 @@ class CustomFieldCSVForm(CSVModelForm): class Meta: model = CustomField fields = ( - 'name', 'label', 'type', 'content_types', 'required', 'description', 'weight', 'filter_logic', 'default', - 'weight', + 'name', 'label', 'type', 'content_types', 'required', 'description', 'weight', 'filter_logic', 'default', 'choices', )