Which attribute of SearchQuerySet has the same function as prefetch_related?

后端 未结 1 823
南笙
南笙 2021-01-28 18:57
def get_books_by_query_params(context, query, query_parameters):
binding_query = query_parameters[\'binding_query\']
query_parameters[\'validate\']=1
default_query = Non         


        
相关标签:
1条回答
  • 2021-01-28 19:50

    There is filter_and:

    SearchQuerySet.filter_and(self, **kwargs)

    Narrows the search by looking for (and including) certain attributes. Join behavior in the query is forced to be AND. Used primarily by the filter method.

    0 讨论(0)
提交回复
热议问题