I am having a nested serializer as:-
```
class DeviceConfigSerializer(serializers.ModelSerializer):
config = serializers.JSONField()
context = serializers.JSONField()
class Meta:
model = Config
fields = ['backend', 'status', 'templates', 'context', 'config']
class DeviceDetailSerializer(serializers.ModelSerializer):
config = DeviceConfigSerializer()
class Meta(BaseMeta):
model = Device
fields = [
'id',
'name',
'organization',
'mac_address',
'key',
'last_ip',
'management_ip',
'model',
'os',
'system',
'notes',
'config',
]
def update():
...
...
...
```
views:-
```
class DeviceDetailView(RetrieveUpdateDestroyAPIView):
serializer_class = DeviceDetailSerializer
queryset = Device.objects.all()
```
When I try to get the data, I receive this:-
But The data found in the HTML display form fields for the nested fields is not satisfactory:-
Can anyone help me with this?
PS: I have tried `to_represenation` and `to_internal_value` but that comes with it's problem.