Skip to content

Commit

Permalink
Use the correct renderer to avoid an unexpected meta dict in resp
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Feb 1, 2024
1 parent 11d41e0 commit 09d252b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/cedar_metadata_records/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from rest_framework import permissions as drf_permissions
from rest_framework.exceptions import NotFound
from rest_framework.generics import ListCreateAPIView, RetrieveAPIView, RetrieveUpdateDestroyAPIView
from rest_framework.renderers import JSONRenderer
from rest_framework.views import Response

from api.base import permissions as base_permissions
Expand Down Expand Up @@ -92,6 +93,8 @@ class CedarMetadataRecordMetadataDownload(JSONAPIBaseView, RetrieveAPIView):
required_read_scopes = [CoreScopes.CEDAR_METADATA_RECORD_READ]
required_write_scopes = [CoreScopes.CEDAR_METADATA_RECORD_WRITE]

renderer_classes = [JSONRenderer]

# This view goes under the _/ namespace
versioning_class = PrivateVersioning
view_category = 'cedar-metadata-records'
Expand Down

0 comments on commit 09d252b

Please sign in to comment.