From 406302e5bf863e82131dda12963e6f9c456d7e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kalvis=20Kalni=C5=86=C5=A1?= Date: Wed, 13 Nov 2024 11:30:03 +0200 Subject: [PATCH] fix(api): don't crash drf-spectacular --- kobo/apps/openrosa/libs/renderers/renderers.py | 2 +- kpi/renderers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kobo/apps/openrosa/libs/renderers/renderers.py b/kobo/apps/openrosa/libs/renderers/renderers.py index 53db176681..7b9cfa6906 100644 --- a/kobo/apps/openrosa/libs/renderers/renderers.py +++ b/kobo/apps/openrosa/libs/renderers/renderers.py @@ -58,7 +58,7 @@ def filter_renderers(self, renderers, format): class MediaFileRenderer(BaseRenderer): media_type = '*/*' - format = None + format = 'TODO' charset = None render_style = 'binary' diff --git a/kpi/renderers.py b/kpi/renderers.py index 49019edd62..bb1f30aba2 100644 --- a/kpi/renderers.py +++ b/kpi/renderers.py @@ -24,7 +24,7 @@ class AssetJsonRenderer(renderers.JSONRenderer): class MediaFileRenderer(renderers.BaseRenderer): media_type = '*/*' - format = None + format = 'TODO' charset = None render_style = 'binary'