[Fixed]-DRF forms – 'str' object has no attribute 'data'

1👍

The error message gives you a clue; it says that it is using an empty string as the pk parameter. This means that for some reason widget.pk is evaluating to empty.

Leave a comment