From 699326dc57275eac4dd6144658a77ea10d6cf867 Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 30 Jun 2017 12:33:28 +0530 Subject: [PATCH] Made to return empty string for the template filter get_value_from_dict instead of None --- datacenterlight/templatetags/custom_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenterlight/templatetags/custom_tags.py b/datacenterlight/templatetags/custom_tags.py index e7b15b5b..ed59af9a 100644 --- a/datacenterlight/templatetags/custom_tags.py +++ b/datacenterlight/templatetags/custom_tags.py @@ -31,4 +31,4 @@ def get_value_from_dict(dict_data, key): if key: return dict_data.get(key) else : - return None + return ""