mirror of https://github.com/django/django.git
Removed unused Prefetch.get_current_prefetch_through().
Unused since its introduction in f51c1f5900
.
This commit is contained in:
parent
0a6ed6b1d9
commit
f4bde7d9a1
|
@ -1329,9 +1329,6 @@ class Prefetch(object):
|
||||||
self.prefetch_through = LOOKUP_SEP.join([prefix, self.prefetch_through])
|
self.prefetch_through = LOOKUP_SEP.join([prefix, self.prefetch_through])
|
||||||
self.prefetch_to = LOOKUP_SEP.join([prefix, self.prefetch_to])
|
self.prefetch_to = LOOKUP_SEP.join([prefix, self.prefetch_to])
|
||||||
|
|
||||||
def get_current_prefetch_through(self, level):
|
|
||||||
return LOOKUP_SEP.join(self.prefetch_through.split(LOOKUP_SEP)[:level + 1])
|
|
||||||
|
|
||||||
def get_current_prefetch_to(self, level):
|
def get_current_prefetch_to(self, level):
|
||||||
return LOOKUP_SEP.join(self.prefetch_to.split(LOOKUP_SEP)[:level + 1])
|
return LOOKUP_SEP.join(self.prefetch_to.split(LOOKUP_SEP)[:level + 1])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue