From f04f2c50ca6a608e4e314a21dac22459e50483fd Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 8 Jul 2021 17:18:10 +0000 Subject: [PATCH] Use literal syntax instead of function calls to create data structure --- contentcuration/contentcuration/viewsets/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contentcuration/contentcuration/viewsets/common.py b/contentcuration/contentcuration/viewsets/common.py index 2e3d6b5c92..7ea63464b0 100644 --- a/contentcuration/contentcuration/viewsets/common.py +++ b/contentcuration/contentcuration/viewsets/common.py @@ -123,7 +123,7 @@ def unnest_dict(dictionary): class DotPathValueMixin(object): def get_value(self, dictionary): # get just field name - value = dictionary.get(self.field_name, dict()) + value = dictionary.get(self.field_name, {}) if value is None: return empty