django-rest-polymorphic icon indicating copy to clipboard operation
django-rest-polymorphic copied to clipboard

Polymorphic serializers for Django REST Framework

Results 22 django-rest-polymorphic issues
Sort by recently updated
recently updated
newest added

Looks like travis is no longer free and travis-ci.org doesn't build anymore. We need to migrate to GitHub Actions. #38

Hi everyone, Here is my situation: 1. In my Django models, I have a `ParentModel` class that inherits from `django-polymorphic`'s `PolymorphicModel`. `ParentModel` is also inherited by some children, such as...

Hi, I added a minimal test case for the bug is was experiencing alongside a fix for it. To summarize the bug: When one partially updates a serializer A which...

MR #18 created a new issue. Consider this simple serializer: ``` class MyPolymorphicSerializer(PolymorphicSerializer): pass # Mostly irrelevant class MySerializer(Serializer): foo = CharField() bar = MyPolymorphicSerializer(required=false) ``` I use standard DRF...

By default, django-rest-polymorphic doesn't play well with DRF's HyperlinkedModelSerializer class. For example, using the example project in this repo as a base project, if you replace each of the `serializers.ModelSerializer`s...

bug

Hi guys, Very good work, I just have one query regarding this. Basically, when I get (Response.data).keys() it is really important for me to receive only attributes defined in within...

Continuing with the example of the documentation ``` class ProjectPolymorphicSerializer(PolymorphicSerializer): model_serializer_mapping = { Project: ProjectSerializer, ArtProject: ArtProjectSerializer, ResearchProject: ResearchProjectSerializer } ``` if we try to use this serializer in another...

This enables passing in a dictionary param, `child_kwargs`, to a PolymorphicSerializer. In doing so the `child_kwargs` will not be applied to the Polymorphic Serializer - but will be applied to...

I'm currently trying to add https://github.com/rsinger86/drf-flex-fields serializers as children to my Polymorphic Serializers. However they rely on extra keyword arguments being passed in to the children on init. This is...

We've done some work with Polymorphic Serializers and, whilst overall the system has been great, we found that the mapping system as is was a bit cumbersome and resulted in...