Hi,
I have a table named View, I'm filtering values like this : views = View.objects.all().values_list('name',flat=True).order_by('id')
I get the output as <QuerySet ['lib', 'lef', 'models', 'datasheet', 'layout', 'gds', 'netlist', 'gds2def', 'symbol']> instead of list of the names. So I face error when try to parse it in jquery : jQuery.parseJSON(JSON.stringify("{{views|safe}}".replace(/'/g, '"').replace(/u"/g, '"').replace(/"/g, '"'))); it gives me the result as ------ > <QuerySet ['lib', 'lef', 'models', 'datasheet', 'layout', 'gds', 'netlist', 'gds2def', 'symbol']> .
How to fix this? Appreciating any help.
Regards,
Santhosh