mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #28226 -- Replaced use of str.join() with concatenation.
This commit is contained in:
parent
94475aab80
commit
7afb476469
10 changed files with 22 additions and 19 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue