Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aiscenblue committed Apr 15, 2018
1 parent 3c72524 commit 2c03ec4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions mongoengine_serialize/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, collections):

def __call__(self, collections):
self.__raw_collections = collections
serialized_collection = self.__serialize_collection(collections)
self.__collections = self.__serialize_collection(collections)
return self

def __serialize_type_of(self, collection):
Expand All @@ -47,7 +47,8 @@ def __serialize_collection(self, collections):
else:
return self.__serialize_type_of(collections)

def __get_raw_name(self, name):
@staticmethod
def __get_raw_name(name):
if name == "id":
return "_id"
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='mongoengine-serialize',
version='1.1.9',
version='1.2.0',
description='Mongoengine serializer',
author='Jeffrey Marvin Forones',
author_email='aiscenblue@gmail.com',
Expand Down

0 comments on commit 2c03ec4

Please sign in to comment.