Browse Source

Fixes #577: Correct initialization of custom boolean fields

Jeremy Stretch 8 years ago
parent
commit
796b131f73
1 changed files with 2 additions and 2 deletions
  1. 2 2
      netbox/extras/forms.py

+ 2 - 2
netbox/extras/forms.py

@@ -30,8 +30,8 @@ def get_custom_fields_for_model(content_type, filterable_only=False, bulk_edit=F
         elif cf.type == CF_TYPE_BOOLEAN:
             choices = (
                 (None, '---------'),
-                (1, 'True'),
-                (0, 'False'),
+                (True, 'True'),
+                (False, 'False'),
             )
             if cf.default.lower() in ['true', 'yes', '1']:
                 initial = True