Submodules module module, search_fields)[source]

Returns a query, that is a combination of Q objects.

That combination aims to search keywords within a model by testing the given search fields., findterms=<built-in method findall of re.Pattern object>, normspace=<built-in method sub of re.Pattern object>)[source]

Splits the query string in individual keywords, getting rid of unecessary spaces and grouping quoted words together. Example:

>>> normalize_query('  some random  words "with   quotes  " and   spaces')
['some', 'random', 'words', 'with quotes', 'and', 'spaces'] module, admin=False)[source], admin=False)[source]

Module contents