Skip to content

Commit 47841bf

Browse files
Fix non-editable boolean field icon rendering in list views
1 parent 7931d52 commit 47841bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_admin/model/typefmt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def bool_formatter(view, value):
3636
Value to check
3737
"""
3838
glyph = 'ok-circle' if value else 'minus-sign'
39-
fa = 'fas fa-check-circle' if value else 'far fa-circle'
40-
return Markup('<span class="%s glyphicon glyphicon-%s icon-%s"></span>' % (fa, glyph, glyph))
39+
fa = 'fa-check-circle' if value else 'fa-minus-circle'
40+
return Markup('<span class="fa %s glyphicon glyphicon-%s icon-%s"></span>' % (fa, glyph, glyph))
4141

4242

4343
def list_formatter(view, values):

0 commit comments

Comments
 (0)