Denis K 9 years ago
parent
commit
d30219ac5e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jet/utils.py

+ 1 - 1
jet/utils.py

@@ -128,7 +128,7 @@ class LazyDateTimeEncoder(json.JSONEncoder):
             return obj.isoformat()
         elif isinstance(obj, Promise):
             return force_text(obj)
-        return json.JSONEncoder.default(self, obj)
+        return self.encode(obj)
 
 
 def get_model_instance_label(instance):