def get_prep_lookup(self, lookup_type, value):
"Perform preliminary non-db specific lookup checks and conversions"
if lookup_type == 'endswith':
return "*%s" % escape_ldap_filter(value)
elif lookup_type == 'startswith':
return "%s*" % escape_ldap_filter(value)
def get_prep_lookup(self, lookup_type, value):
"Perform preliminary non-db specific lookup checks and conversions"
if lookup_type == 'endswith':
return "*%s" % escape_ldap_filter(value)
elif lookup_type == 'startswith':
return "%s*" % escape_ldap_filter(value)