Hi All,

Code, views.py:
https://gist.github.com/visued/de7d62854e07c2848c9b0146384264cb

My code return in url localhost:8000/snippets/ only object 
ColaboradorSerialize, ex return:

[ { "id": 1, "cod_colab": 34568, "nome_colab": "VICTOR VINÍCIUS SUED FLÁVIO" } ]


As return all objects?
*EquipamentoSerializer, ColaboradorSerializer, PropriedadeSerializer, 
MotivoParadaSerializer, ApontamentoSerializer*

And acess url example for object in *EquipamentoSerializer, 
ColaboradorSerializer, PropriedadeSerializer, MotivoParadaSerializer, 
ApontamentoSerializer* ?

ex:
localhost:8000/snippets/equipamento/ and return ex:

 [ { "id": 1, "cod_equip": 4681, "desc_equip": "JD 3520" } ]

localhost:8000/snippets/colaborador/ and return ex:

[ { "id": 1, "cod_colab": 34568, "nome_colab": "VICTOR VINÍCIUS SUED FLÁVIO" } ]

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to