Re: Django Rest Framework - Could not resolve URL for hyperlinked relationship using view name “field-detail”

2016-11-14 Thread Bernardo Garcia
I understand. Thanks Xavier This works for me :) On Monday, November 14, 2016 at 5:14:55 AM UTC-5, Xavier Ordoquy wrote: > > Hi, > > You declared your view as "fields" in the routers, so you should use > "fields-detail" as the view name for the hyperlink. > > Regards, > Xavier, > Linovia. > --

Re: Django Rest Framework - Could not resolve URL for hyperlinked relationship using view name “field-detail”

2016-11-14 Thread Xavier Ordoquy
Hi, You declared your view as "fields" in the routers, so you should use "fields-detail" as the view name for the hyperlink. Regards, Xavier, Linovia. -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and

Django Rest Framework - Could not resolve URL for hyperlinked relationship using view name “field-detail”

2016-11-11 Thread Bernardo Garcia
I know that this inconvenient is very presented, may be that I need learn more about of serializer relationships I have the following model: class Field(models.Model): FIELD_TYPE_NATURE = 'Grama natural' FIELD_TYPE_ARTIFICIAL = 'Grama sintetica' FIELD_TYPE_CHOICES = ( (