reimplement wrapped prefetch_related
This commit is contained in:
parent
19856dfd8a
commit
8fef2a81a9
5 changed files with 35 additions and 20 deletions
|
@ -26,7 +26,7 @@ class SerializableMixin(models.Model):
|
|||
result = OrderedDict()
|
||||
if include_type:
|
||||
result['type'] = self.__class__.__name__.lower()
|
||||
result['id'] = self.id
|
||||
result['id'] = self.pk
|
||||
return result
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue