It looks like you are using `query_param` to filter your dataset. The 
detail_route is based on the filtered dataset. However, there’s no reason the 
get_object returns more than one item. Maybe the project overrides the 
get_object in a way that breaks.

Regards,
Xavier Ordoquy,
Linovia.

> Le 16 févr. 2018 à 15:38, sa...@magicboxasia.com a écrit :
> 
> Hi
> I am fully understand the usage of the Django REST. Then I would like to 
> discuss the mechanic of it in here since. Github template mentions me that.
> First picture is `detail route`
> Second picture is `list route + filter`
> Third one is `error`
> 
> Today my colleague he tries add `query_param` to the `detail route` which I 
> have never tried.
> He found that Django REST returns him `500`
> 
> Why `detail route` still read the `query_param`?
> Thanks
> Sarit
> 
> -- 
> 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 django-rest-framework+unsubscr...@googlegroups.com 
> <mailto:django-rest-framework+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> <Screen Shot 2018-02-16 at 21.32.39.png><Screen Shot 2018-02-16 at 
> 21.33.45.png><Screen Shot 2018-02-16 at 21.36.29.png>

-- 
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 django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to