Re:Serialize Django Data for JavaScript
by brento on Wednesday September 07, 2022 @09:21AM
(#32750194)
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).
[ Parent
| on HN ]
Re:Serialize Django Data for JavaScript
by traverseda on Wednesday September 07, 2022 @11:13AM
(#32751716)
Check out the "values_list" method for flattening a queryset.