El jueves, 10 de diciembre de 2015, 12:27:26 (UTC-6), miguel angel lopez mendo escribió:
--i have this serializersclass ValuarCoche(serializers.ModelSerializer): class Meta:model = Valuaciondepth = 6fields = ('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
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2ed0933a-b5f9-47ea-8c36-2dd46faeca14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:
Post a Comment