1👍
✅
You want DeviceSerializer
to be a ModelSerializer
since it has a Meta
with model
defined.
At the moment, it’s a regular Serializer
without any defined field. Therefore it doesn’t return any data.
Source:stackexchange.com