Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replaced '__' with LOOKUP_SEP in sql/

Thanks to Simon Charette for report.
  • Loading branch information...
commit c64b57d16688025b2d48668d5c4cb9eda7484612 1 parent bbabfdc
@akaariai akaariai authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/sql/
2  django/db/models/sql/
@@ -1545,7 +1545,7 @@ def split_exclude(self, filter_expr, prefix, can_reuse):
alias, col =[0].col
query.where.add((Constraint(alias, col, None), 'isnull', False), AND)
# We need to trim the last part from the prefix.
- trimmed_prefix = '__'.join(prefix.split(LOOKUP_SEP)[0:-1])
+ trimmed_prefix = LOOKUP_SEP.join(prefix.split(LOOKUP_SEP)[0:-1])
if not trimmed_prefix:
rel, _, direct, m2m = self.model._meta.get_field_by_name(prefix)
if not m2m:
Please sign in to comment.
Something went wrong with that request. Please try again.