Explore >> Select a destination


You are here

www.laceyhenschel.com
| | www.django-rest-framework.org
1.3 parsecs away

Travel
| | Django, API, REST, Viewsets
| | www.cdrf.co
0.8 parsecs away

Travel
| | Detailed descriptions, with full methods and attributes of ModelViewSet Django REST Framework class.
| | davi.sh
3.3 parsecs away

Travel
| | I often want to include related nested objects in my Django REST Framework ModelViewSets for CRUD operations, but don't want those related objects cluttering up the list view. To accomplish this, you can return a serializer from get_serializer_class() that doesn't include the nested relation when the ViewSet action is list. I ended up doing this on a bunch of viewsets, so I factored the logic out into a separate mixin: from typing import Union from rest_framework import viewsets class ListSerializerMixi....
| | www.paulox.net
26.5 parsecs away

Travel
| How-To guide to update a Django queryset with annotation andsubquery.