Explore >> Select a destination


You are here

sam.hooke.me
| | davi.sh
2.2 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....
| | simonwillison.net
4.2 parsecs away

Travel
| | I've added a faceted search engine to this blog, powered by PostgreSQL. It supports regular text search (proper search, not just SQL"like" queries), filter by tag, filter by date, filter ...
| | humberto.io
3.4 parsecs away

Travel
| | Discover how to separate your stacks to get autonomy between frontend and backend using Angular 6 and Django 2
| | martinheinz.dev
23.9 parsecs away

Travel
| Whether you are working on some machine learning/AI stuff, building web apps in Flask or just writing some quick Python script, it's always useful ...