Wow..you nailed it brother, thank you. It solved the issue.
Regards,
Amitesh Sahay
On Monday, 8 July, 2019, 10:32:13 pm IST, Jani Tiainen
wrote:
Hi.
In your view instead of using Response(serializer) you need to use
Response(serializer.data)
HTH.
ma 8. heinäk. 2019 klo 19.48
Hi.
In your view instead of using Response(serializer) you need to use
Response(serializer.data)
HTH.
ma 8. heinäk. 2019 klo 19.48 'Amitesh Sahay' via Django users <
django-users@googlegroups.com> kirjoitti:
> hello Members,
>
> I am working on some POC for django rest framework. Its very
hello Members,
I am working on some POC for django rest framework. Its very simple setup,
nothing complicated. While I was doing my testing I am facing below error:
===
TypeError at /api/status/
Object of type 'ListSerializer' is not JSON serializable
| Request
3 matches
Mail list logo