remove ordereddict for performance reasons

This commit is contained in:
Laura Klünder 2018-12-27 16:07:07 +01:00
parent 3f2fb2cf69
commit 8ea8f59d99
2 changed files with 2 additions and 3 deletions

View file

@ -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