I want to send a phone through the url already test in several ways but I 
can not

View

class SearchCustomerViewSet(generics.RetrieveUpdateDestroyAPIView):

    permission_classes = ()
    serializer_class = SearchCustomerSerializer
    lookup_field = 'phone'

    def get_queryset(self):

        queryset = Customer.objects.filter(company=1)
        return queryset


Url

url(r'^api/search/(?P<phone>[0-9]+)/$', views.SearchCustomerViewSet.as_view()),

-- 
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