mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 09:53:34 -06:00
Corrected filtering of boolean custom fields
This commit is contained in:
parent
6af7403738
commit
afe805bd28
@ -29,8 +29,8 @@ def get_custom_fields_for_model(content_type, filterable_only=False, bulk_edit=F
|
|||||||
elif cf.type == CF_TYPE_BOOLEAN:
|
elif cf.type == CF_TYPE_BOOLEAN:
|
||||||
choices = (
|
choices = (
|
||||||
(None, '---------'),
|
(None, '---------'),
|
||||||
(True, 'True'),
|
(1, 'True'),
|
||||||
(False, 'False'),
|
(0, 'False'),
|
||||||
)
|
)
|
||||||
if cf.default.lower() in ['true', 'yes', '1']:
|
if cf.default.lower() in ['true', 'yes', '1']:
|
||||||
initial = True
|
initial = True
|
||||||
|
Loading…
Reference in New Issue
Block a user