def parse_filters_kwargs(request, client_keywords=None):
 filters = {}
 kwargs = {}
 client_keywords = (client_keywords or {})
 for param in request.GET:
  param_value = PARAM_MAPPING.get(request.GET[param], request.GET[param])
  if (param in client_keywords):
   kwargs[param] = param_value
  else:
   filters[param] = param_value
 return (filters, kwargs)

def parse_filters_kwargs ( request , client_keywords = None ) : filters = { } kwargs = { } client_keywords = ( client_keywords or { } ) for param in request . GET : param_value = PARAM_MAPPING . get ( request . GET [ param ] , request . GET [ param ] ) if ( param in client_keywords ) : kwargs [ param ] = param_value else : filters [ param ] = param_value return ( filters , kwargs )
extract rest filter parameters from the request get args .