Changes between Initial Version and Version 1 of Ticket #27982, comment 10


Ignore:
Timestamp:
Mar 24, 2017, 6:57:27 AM (8 years ago)
Author:
gigelu

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27982, comment 10

    initial v1  
    1818As a quick fix for the Django only version is to evaluate the queryset before passing it to the paginator.
    1919But this doesn't work with DRF because that querysets gets through filtering which returns another queryset which again doesn't have the `_result_cache` populated.
     20Works on DRF too by overriding `paginate_queryset()` on a custom pagination and evaluating the queryset there.
Back to Top