diff options
| author | Tom <tom@tomforb.es> | 2017-05-20 22:16:36 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-05-27 13:59:05 -0400 |
| commit | 7afb47646920ab3835dfa1750257dace01883a4b (patch) | |
| tree | 8ee40e80cb841075fb6c282dfd72ed108b951066 /django/db/models/query.py | |
| parent | 94475aab800fc492853b67ada6b6b33d47554393 (diff) | |
Fixed #28226 -- Replaced use of str.join() with concatenation.
Diffstat (limited to 'django/db/models/query.py')
| -rw-r--r-- | django/db/models/query.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index 10952195db..cd9709c1fa 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -1282,8 +1282,8 @@ class Prefetch: return obj_dict def add_prefix(self, prefix): - self.prefetch_through = LOOKUP_SEP.join([prefix, self.prefetch_through]) - self.prefetch_to = LOOKUP_SEP.join([prefix, self.prefetch_to]) + self.prefetch_through = prefix + LOOKUP_SEP + self.prefetch_through + self.prefetch_to = prefix + LOOKUP_SEP + self.prefetch_to def get_current_prefetch_to(self, level): return LOOKUP_SEP.join(self.prefetch_to.split(LOOKUP_SEP)[:level + 1]) |
