remove ordereddict for performance reasons
This commit is contained in:
parent
3f2fb2cf69
commit
8ea8f59d99
2 changed files with 2 additions and 3 deletions
|
@ -27,7 +27,7 @@ class SerializableMixin(models.Model):
|
|||
))
|
||||
|
||||
def _serialize(self, include_type=False, **kwargs):
|
||||
result = OrderedDict()
|
||||
result = {}
|
||||
if include_type:
|
||||
result['type'] = self.__class__.__name__.lower()
|
||||
result['id'] = self.pk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue