Skip to content Skip to sidebar Skip to footer
Showing posts with the label Django Rest Framework

Django Rest Framework : Nested Serializer Dynamic Model Fields

I have defined serializers like below. I'm using a mixin to change the display fields on the fl… Read more Django Rest Framework : Nested Serializer Dynamic Model Fields

Dynamically Exclude Or Include A Field In Django Rest Framework Serializer

I have a serializer in Django REST framework defined as follows: class QuestionSerializer(serialize… Read more Dynamically Exclude Or Include A Field In Django Rest Framework Serializer

Django Rest Framework Scope Throttling On Function Based View

Wanted to ask if someone knows a way or a workaround to how to set different throttle scopes for di… Read more Django Rest Framework Scope Throttling On Function Based View

Getting "doesn't Exist Or Is M2m Field" Error On My Uuid (primary Key) When Trying To Save In Drf

I've written my own bulk save() because I can't get the internal save() method of ListSeria… Read more Getting "doesn't Exist Or Is M2m Field" Error On My Uuid (primary Key) When Trying To Save In Drf

Django Rest Framework: Set Database Dynamically From Url Parameter

I'm trying to find the right way to do this: Users service: /api/ /users /api/us/users That se… Read more Django Rest Framework: Set Database Dynamically From Url Parameter

Django-filter With Drf - How To Do 'and' When Applying Multiple Values With The Same Lookup?

This is a slightly simplified example of the filterset I'm using, which I'm using with the … Read more Django-filter With Drf - How To Do 'and' When Applying Multiple Values With The Same Lookup?