def get_filter_name(field_name, lookup_expr):
 filter_name = LOOKUP_SEP.join([field_name, lookup_expr])
 _exact = (LOOKUP_SEP + u'exact')
 if filter_name.endswith(_exact):
  filter_name = filter_name[:(- len(_exact))]
 return filter_name

def get_filter_name ( field_name , lookup_expr ) : filter_name = LOOKUP_SEP . join ( [ field_name , lookup_expr ] ) _exact = ( LOOKUP_SEP + u'exact' ) if filter_name . endswith ( _exact ) : filter_name = filter_name [ : ( - len ( _exact ) ) ] return filter_name
combine a field name and lookup expression into a usable filter name .