I get this error when make serializers for a ManytoMany field:

Please help me fix this.
Nested serializers don't work with the browsable API.
Use the json content type instead.
Same issue comes when using django postgres ArrayField. Is there any solution for it? Even changing the field to comma separated string using drf ListField does not solve this.
Hi @krdeepak - the underlying issue is that lists are not well represented by HTML form inputs. I would recommend switching over to the JSON input instead.
As to the SO article, I think if you were to inherit CharField, this might work. e.g.,
class StringArrayField(CharField, ListField):
...
@krdeepak Did you find any real solution to this?
No, I just use raw json input when needed.
@krdeepak for quick response.
Why does it work in admin?
This feature could be a nice enhancement for future releases.
No, I just use raw json input when needed.
when i want to upload image at that time raw json could not work is there any idea about it
@lalitvasoya You can set the ListField parameter required = False and then make a PUT request to update the same object.
Most helpful comment
This feature could be a nice enhancement for future releases.