I need to do the 'string replace' on all my queryset, but I receive the following error:
'QuerySet' object has no attribute 'replace'
def get_profilesJson_view(self):
queryset = Reports.objects.all().values('val_x','val_y').order_by('-time_end')[:1]
new_queryset = queryset.replace(';', ',')
reports_list = list(new_queryset)
return JsonResponse(reports_list, safe=False)
How can I do? Is it possible to use the '.filter' function? I have not experience with Django