Explore >> Select a destination


You are here

stribny.name
| | davi.sh
10.8 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....
| | sam.hooke.me
10.5 parsecs away

Travel
| | The home page of Sam Hooke.
| | everttimberg.io
8.1 parsecs away

Travel
| | Flask is a simple Python framework for creating web applications. It can be used to create API servers in a microservices architecture. When doing so, it is helpful to provide API documentation that ships with your service. This post outlines a technique for shipping OpenAPI v3 documentation from your service while co-locating the documentation with the API implementation. Keeping the documentation with the route definition ensures that it is easy to update, updates can be clearly identified during code ...
| | www.jasonwhaley.com
41.2 parsecs away

Travel
| I was running in to a problem with a Java project that occured only in IntelliJ Idea, but not on the command line, when running specific test classes ...