fix include_type
This commit is contained in:
parent
480850b8ea
commit
31297ac39a
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ class Location(LocationSlug, AccessRestrictionMixin, TitledMixin, models.Model):
|
|||
result = super().serialize(detailed=detailed, **kwargs)
|
||||
if not detailed:
|
||||
result = OrderedDict((
|
||||
(name, result[name]) for name in ('id', 'slug', 'title', 'subtitle', 'point', 'bounds', 'locations')
|
||||
(name, result[name]) for name in ('id', 'type', 'slug', 'title', 'subtitle', 'point', 'bounds',
|
||||
'locations')
|
||||
if name in result
|
||||
))
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue