I want to clean the strings from a django query so it can be used in latex
items = []
items_to_clean = items.objects.get.all().values()
for dic in items_to_clean:
items.append(dicttolatex(dic))
This is my standard aproach to this task. Can this somehow be solved whith list comprehension. since dicttolatex
is a function returning a dict.