mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-16 18:13:54 -05:00
Add a formatter for yes/no
This is a bit neater than a bunch of repetetive ternary statements.
This commit is contained in:
@@ -518,3 +518,7 @@ def format_mobile_network(network):
|
||||
|
||||
def format_billions(count):
|
||||
return humanize.intword(count)
|
||||
|
||||
|
||||
def format_yes_no(value):
|
||||
return 'Yes' if value else 'No'
|
||||
|
||||
Reference in New Issue
Block a user