From afe805bd28a09a4358005f6cf5ecd48e43dfc941 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 12 Sep 2016 15:59:43 -0400 Subject: [PATCH] Corrected filtering of boolean custom fields --- netbox/extras/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/extras/forms.py b/netbox/extras/forms.py index bb41d59a2..8ec70d2e8 100644 --- a/netbox/extras/forms.py +++ b/netbox/extras/forms.py @@ -29,8 +29,8 @@ def get_custom_fields_for_model(content_type, filterable_only=False, bulk_edit=F elif cf.type == CF_TYPE_BOOLEAN: choices = ( (None, '---------'), - (True, 'True'), - (False, 'False'), + (1, 'True'), + (0, 'False'), ) if cf.default.lower() in ['true', 'yes', '1']: initial = True