Added presentation_name to to_json shortcut, bumped version
This commit is contained in:
@@ -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 ]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user