[mailman3] Fix the rest API on mailman

The API didn't work and failed with 500, because the REST framework didn't know
how to render the response. This fixes the issue.

https://pagure.io/fedora-infrastructure/issue/12134

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-08-20 11:57:33 +02:00
parent 6652c3fa43
commit 04f26a1221

View file

@ -323,6 +323,9 @@ Q_CLUSTER = {
#
REST_FRAMEWORK = {
'PAGE_SIZE': 10,
'DEFAULT_RENDERER_CLASSES': [
'rest_framework.renderers.JSONRenderer',
],
'DEFAULT_FILTER_BACKENDS': (
'rest_framework.filters.OrderingFilter',
),