add bool to json serializable types (to be rebased)
This commit is contained in:
parent
941d080094
commit
9bcc8d7a06
|
@ -670,7 +670,7 @@ class ProxyLogger(object):
|
|||
request = extra.get('request')
|
||||
|
||||
def is_json_serializable(value):
|
||||
return isinstance(value, (list, dict) + six.integer_types + six.string_types)
|
||||
return isinstance(value, (list, dict, bool) + six.integer_types + six.string_types)
|
||||
attr['extra'] = {key: value for key, value in extra.items() if is_json_serializable(value)}
|
||||
|
||||
if getattr(request, 'META', None):
|
||||
|
|
Loading…
Reference in New Issue