Also having your models would be helpful.
On Saturday, 12 December 2015 02:21:07 UTC, Daniel Chimeno wrote:
-- On Saturday, 12 December 2015 02:21:07 UTC, Daniel Chimeno wrote:
This question is more about DRF than Django itself, I haven't use it for a while so I can't answer you,but please, put the code in a proper format way or pastebin, and say the version you are using both Django and DRFin order other people can answer you.
El jueves, 10 de diciembre de 2015, 19:27:26 (UTC+1), 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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/811a040b-6ad0-49a8-be5d-2e2981ff4e4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment