Skip to content

Commit

Permalink
Corrected filtering of boolean custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Sep 12, 2016
1 parent 93d2b6c commit 4d2d2da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox/extras/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d2d2da

Please sign in to comment.