hola no entendi bien tu solucion podrias explicarme un poco mas?

El lunes, 9 de noviembre de 2015, 12:48:17 (UTC-5), Simon Han escribió:
>
> Yes, pagination was what I wanted and I managed to get it working. Thanks 
> for pointing me in the right direction! 
>
> For anyone else who wants to do the same thing, define the view as a 
> generics.GenericAPIView, and overwrite the get_queryset() function to 
> return the results of your custom SQL call. This gives you all the 
> functionality of a generics.GenericAPIView, which includes pagination. For 
> example,
>
> class SnippetList(mixins.ListModelMixin,
>                   generics.GenericAPIView):    serializer_class = 
> SnippetSerializer
>
>     def get_queryset(self):
>         return get_SQL_query_results_as_dict()
>
>

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