Kaydet (Commit) 658f1e81 authored tarafından Simon Charette's avatar Simon Charette

Removed unnecessary casting when using builtin lookups on PostgreSQL.

üst 7a2c2711
......@@ -83,6 +83,8 @@ class DatabaseOperations(BaseDatabaseOperations):
'istartswith', 'endswith', 'iendswith', 'regex', 'iregex'):
if internal_type in ('IPAddressField', 'GenericIPAddressField'):
lookup = "HOST(%s)"
elif internal_type in ('CharField', 'TextField'):
lookup = '%s'
else:
lookup = "%s::text"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment