From 170bf4e03df943be00fa5f89c979b683c3676fb6 Mon Sep 17 00:00:00 2001 From: Grokzen Date: Fri, 18 May 2018 21:24:31 +0200 Subject: [PATCH] Remove unused variable --- startup_scripts/20_custom_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startup_scripts/20_custom_fields.py b/startup_scripts/20_custom_fields.py index 3492baf..494d425 100644 --- a/startup_scripts/20_custom_fields.py +++ b/startup_scripts/20_custom_fields.py @@ -57,7 +57,7 @@ with open('/opt/netbox/initializers/custom_fields.yml', 'r') as stream: custom_field.save() for idx, choice_details in enumerate(cf_details.get('choices', [])): - choice, created = CustomFieldChoice.objects.get_or_create( + choice, _ = CustomFieldChoice.objects.get_or_create( field=custom_field, value=choice_details['value'], )