Added presentation_name to to_json shortcut, bumped version
This commit is contained in:
parent
8fe8d5ec8c
commit
60ac1a49cc
|
|
@ -25,8 +25,8 @@ class AsyncronQuerySet( models.QuerySet ):
|
|||
|
||||
return mapping
|
||||
|
||||
def to_json( self, *structure ):
|
||||
return [ m.fields_to_dict( *structure ) for m in self ]
|
||||
def to_json( self, *structure, presentation_name = None ):
|
||||
return [ m.fields_to_dict( *structure, presentation_name = presentation_name ) for m in self ]
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user