فهرست منبع

Corrected filtering of boolean custom fields

Jeremy Stretch 9 سال پیش
والد
کامیت
afe805bd28
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      netbox/extras/forms.py

+ 2 - 2
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