diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2012-12-17 21:15:01 +0200 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2012-12-17 21:15:01 +0200 |
| commit | c64b57d16688025b2d48668d5c4cb9eda7484612 (patch) | |
| tree | 33a4f8c1d0bb808b4a289a2a2d7e36141fa926f8 | |
| parent | bbabfdcccee9ccd98fc140233dee748253bcb4a2 (diff) | |
Replaced '__' with LOOKUP_SEP in sql/query.py
Thanks to Simon Charette for report.
| -rw-r--r-- | django/db/models/sql/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index f6b812c54d..ff56211c5d 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -1545,7 +1545,7 @@ class Query(object): alias, col = query.select[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: |
