Hacker News new | ask | show | jobs
by Chiron1991 1380 days ago
Or simply use Django's builtin mechanism for that instead of poorly reimplementing it: https://docs.djangoproject.com/en/4.1/ref/templates/builtins...
1 comments

Thank you for pointing this out, I forgot about this template filter. This unfortunately still wouldn't properly all the data types mentioned in my article (e.g. QuerySets).
Check out the "values_list" method for flattening a queryset.