From 285dc1c5366e387cb709cf720b6c51e1dd03d094 Mon Sep 17 00:00:00 2001 From: Kevin Chang Date: Fri, 14 Sep 2018 15:23:09 -0400 Subject: [PATCH] more simplification --- jsonate/json_encoder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jsonate/json_encoder.py b/jsonate/json_encoder.py index b1cd4c2..5b771dc 100644 --- a/jsonate/json_encoder.py +++ b/jsonate/json_encoder.py @@ -102,8 +102,7 @@ def map_queryset(obj): # Managers are typically hidden fields, and must be specified via meta fields @register_typemap(Manager) def map_manager(obj): - qs = obj.get_queryset() - return qs + return obj.get_queryset() @register_typemap(Model) def map_model_instance(obj):