search icon indicating copy to clipboard operation
search copied to clipboard

Copy ordering from Django queryset when wrapping in a search adapter

Open nealedj opened this issue 8 years ago • 0 comments

Currently this will work:

    search_qs = SearchQueryAdapter.from_queryset(AModel.objects.all())
    search_qs = search_qs.order_by('-foo')

But not this:

    qs = AModel.objects.order_by('-foo')
    search_qs = SearchQueryAdapter.from_queryset(qs)

nealedj avatar Jul 06 '16 14:07 nealedj