Django Json Format Error
I am getting this error when I manually entered the data into POST request. But when I do it in the admin page, there is no error. Error at 'contact_number' field.. This is the cor
Solution 1:
It's ok now, I looped the contact numbers if contactnumber is greater than 1.
contact_number = data['contact_number']
for x in contact_number:
qs = ContactNumber(qs.number_id = new_contact.id, qs.contact_number = x)
qs.save()
Post a Comment for "Django Json Format Error"