Skip to content

Commit

Permalink
more simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
kckaiwei committed Sep 14, 2018
1 parent 044707e commit 285dc1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jsonate/json_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 285dc1c

Please sign in to comment.