diff --git a/src/design/plone/ctgeneric/restapi/serializer/summary.py b/src/design/plone/ctgeneric/restapi/serializer/summary.py index a3613e8..0d2ba9a 100644 --- a/src/design/plone/ctgeneric/restapi/serializer/summary.py +++ b/src/design/plone/ctgeneric/restapi/serializer/summary.py @@ -14,8 +14,8 @@ @implementer(ISerializeToJsonSummary) @adapter(Interface, IDesignPloneCtgenericLayer) class DefaultJSONSummarySerializer(BaseSerializer): - def __call__(self, force_all_metadata=False): - res = super().__call__(force_all_metadata=force_all_metadata) + def __call__(self, **kwargs): + res = super().__call__(**kwargs) if self.context.portal_type == "Persona": res["ruolo"] = getattr(self.context, "ruolo", "") res["incarichi"] = getattr(self.context, "ruolo", "") @@ -25,8 +25,8 @@ def __call__(self, force_all_metadata=False): @implementer(ISerializeToJsonSummary) @adapter(IPersona, IDesignPloneCtgenericLayer) class PersonaDefaultJSONSummarySerializer(BasePersonaSerializer): - def __call__(self, force_all_metadata=False): - res = super().__call__(force_all_metadata=force_all_metadata) + def __call__(self, **kwargs): + res = super().__call__(**kwargs) res["ruolo"] = getattr(self.context, "ruolo", "") res["incarichi"] = getattr(self.context, "ruolo", "") return res