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):