Skip to content
#

django-rest-framework

Here are 8,567 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

silversword411
silversword411 commented Mar 22, 2022

Add to docs:

Clean install docker commands:

sudo docker-compose stop
(If TRMM is the only thing on this docker host you can use below commands)
sudo docker rm -f $(sudo docker ps -a -q)
sudo docker volume rm $(sudo docker volume ls -q)
sudo docker network prune

If you are running other things on the same host you will have to remove all the images and volumes manually. Once that is co

documentation good first issue
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