[Vuejs]-Django REST API allows post from Swagger, but not from postman or vue form using axios

0👍

The problem was in the model not the gui.

Here is the correct row in the model:

param2 = models.CharField(max_length=200, blank=True, null = True, default = 'N/A' )

in the other models that were working, I had both blank and null set to True like here, when I updated the offending model to add blank=True, everything was back to normal, the error messages were misleading.

Leave a comment