Skip to content

Commit

Permalink
Merge 4b5bfdc into 9481907
Browse files Browse the repository at this point in the history
  • Loading branch information
i-trofimtschuk committed Jan 30, 2019
2 parents 9481907 + 4b5bfdc commit ea96d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis_tasks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def decode_dict(dct):
def is_serializable(obj):
if obj is None:
return True
if isinstance(obj, (int, str, float, bool, datetime.datetime)):
if isinstance(obj, (int, str, float, bool, datetime.date, datetime.datetime)):
return True
if isinstance(obj, (tuple, list, set)):
return all(is_serializable(x) for x in obj)
Expand Down

0 comments on commit ea96d9f

Please sign in to comment.