X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ldapdb%2Fmodels%2Ffields.py;h=78ec1c7569f3421d2b856e2d78856f70cbed70da;hb=a267aef98cb505df265f4e5564ff7b6c00b45637;hp=88b52522814bf259ec164a731ad3b265be686fd9;hpb=5b97fccb66efc67de3ce0165528cd454b2245ddc;p=matthijs%2Fupstream%2Fdjango-ldapdb.git diff --git a/ldapdb/models/fields.py b/ldapdb/models/fields.py index 88b5252..78ec1c7 100644 --- a/ldapdb/models/fields.py +++ b/ldapdb/models/fields.py @@ -25,19 +25,6 @@ class CharField(fields.CharField): kwargs['max_length'] = 200 super(CharField, self).__init__(*args, **kwargs) - def get_db_prep_value(self, value): - """Returns field's value prepared for interacting with the database - backend. - - Used by the default implementations of ``get_db_prep_save``and - `get_db_prep_lookup``` - """ - return value.replace('\\', '\\5c') - .replace('*', '\\2a') - .replace('(', '\\28') - .replace(')', '\\29') - .replace('\0', '\\00') - class ImageField(fields.Field): pass