mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-08 15:34:43 +00:00
wagtailapi.serializers.PageSerializer was calling super(BaseSerializer)
This issue was found via lgtm.com/projects/g/torchbox/wagtail/
This commit is contained in:
parent
f2fcfe54a2
commit
8c4644f4ca
2 changed files with 2 additions and 1 deletions
|
|
@ -191,6 +191,7 @@ Contributors
|
|||
* Edd Baldry
|
||||
* PyMan Claudio Marinozzi
|
||||
* Jeffrey Chau
|
||||
* Craig Loftus
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ class PageSerializer(BaseSerializer):
|
|||
if field_name in child_relations and hasattr(child_relations[field_name], 'api_fields'):
|
||||
return ChildRelationField, {'child_fields': child_relations[field_name].api_fields}
|
||||
|
||||
return super(BaseSerializer, self).build_relational_field(field_name, relation_info)
|
||||
return super(PageSerializer, self).build_relational_field(field_name, relation_info)
|
||||
|
||||
|
||||
class ImageSerializer(BaseSerializer):
|
||||
|
|
|
|||
Loading…
Reference in a new issue