i have this serializers
class ValuarCoche(serializers.ModelSerializer):
class Meta:
model = Valuacion
depth = 6
fields = ('coche','Precio_Venta','Precio_Compra')
class CocheSerializer2(serializers.ModelSerializer):
valuacion = ValuarCoche(many=True)
class Meta:
model = Coche
fields = ('id', 'marca', 'modelo', 'version', 'estado','anio','timestamp','valuacion')
but don't work i need that print
{
"id": 3,
"marca": {
"id": 1,
"nombre": "Acura"
},
"modelo": {
"id": 1,
"nombre": "ILX"
},
"version": "a5",
"estado": "1",
"anio": 2015,
"timestamp": "2015-12-08T19:12:05.887126Z" "Precio_Venta": 0,
"Precio_Compra": 0
},
the error is the next
