The Wayback Machine - https://web.archive.org/web/20220706163206/https://github.com/topics/django-rest-framework
Skip to content
#

django-rest-framework

Here are 9,220 public repositories matching this topic...

webjunkie
webjunkie commented Aug 24, 2018

I'm using https://github.com/Artory/drf-hal-json/ that basically provides custom base serializers that add dynamically fields like _links into the response via the to_representation method.

I tried to somehow get that into the schema as well, but I'm getting stuck. Are there any directions on what I need to provide/subclass/overwrite, so to make it work?

I imagine I could inspect my seri

jokiefer
jokiefer commented Feb 15, 2022

Description of the Bug Report

SparseFieldsetsMixin does not adjust field_names by configured format.

Fix:

class SparseFieldsetsMixin:
    """
    A serializer mixin that adds support for sparse fieldsets through `fields` query parameter.

    Specification: https://jsonapi.org/format/#fetching-sparse-fieldsets
    """

    def __init__(self, *args, **kwargs):
  
bug good first issue

Improve this page

Add a description, image, and links to the django-rest-framework topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the django-rest-framework topic, visit your repo's landing page and select "manage topics."

Learn more