Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Chiron1991
· 4y ago · 0 comments
Or simply use Django's builtin mechanism for that instead of poorly reimplementing it:
https://docs.djangoproject.com/en/4.1/ref/templates/builtins...
Comments
[–]
brento
4y ago
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).
[–]
traverseda
4y ago
Check out the "values_list" method for flattening a queryset.