One of the ways this error occurs is when you have existing data that is a varchar and you want to convert to uuid
1 2 3 4 |
d=Data.objects.filter(data_id__icontains=“-“) for x in d: x.data_id=str(x.data_id).replace(“-“,“”) x.save() |
Leave a Reply