mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
Fixed #28226 -- Replaced use of str.join() with concatenation.
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user