#2217 [mailman3] Fix the rest API on mailman
Merged 2 months ago by zlopez. Opened 2 months ago by zlopez.
fedora-infra/ zlopez/ansible 12134  into  main

@@ -323,6 +323,9 @@ 

  #

  REST_FRAMEWORK = {

      'PAGE_SIZE': 10,

+     'DEFAULT_RENDERER_CLASSES': [

+         'rest_framework.renderers.JSONRenderer',

+     ],

      'DEFAULT_FILTER_BACKENDS': (

          'rest_framework.filters.OrderingFilter',

      ),

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

Pull-Request has been merged by zlopez

2 months ago
Metadata