Please don't cross post messages like this to django-developers and 
django-users. The latter is the appropriate mailing list for questions like 
this.

On Thursday, December 10, 2015 at 3:37:54 PM UTC-5, miguel angel lopez 
mendo wrote:
>
> 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 
>
>
> <https://lh3.googleusercontent.com/-cP4eP6a_c9Q/VmnDtYHYJFI/AAAAAAAAAig/vixAFfQisos/s1600/Captura%2Bde%2Bpantalla%2B2015-12-10%2Ba%2Blas%2B12.25.13%2Bp.m..png>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/fdbc6b77-f30f-4753-9768-f426be22cc0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to