Y
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
brento
1379 days 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).
link
traverseda
1379 days ago
Check out the "values_list" method for flattening a queryset.
link