diff options
| author | Tim Graham <timograham@gmail.com> | 2016-09-23 17:11:15 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-09-23 17:11:15 -0400 |
| commit | f4bde7d9a10312414c8da33adfcad701a1463bce (patch) | |
| tree | c87a1130dcdce6ba108f9beb1ee968c42dc6abed | |
| parent | 0a6ed6b1d9dadd0916e887ff9026cf206be36a5c (diff) | |
Removed unused Prefetch.get_current_prefetch_through().
Unused since its introduction in f51c1f590085556abca44fd2a49618162203b2ec.
| -rw-r--r-- | django/db/models/query.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index f69c7754f4..fddcbb5bbe 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -1329,9 +1329,6 @@ class Prefetch(object): self.prefetch_through = LOOKUP_SEP.join([prefix, self.prefetch_through]) 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): return LOOKUP_SEP.join(self.prefetch_to.split(LOOKUP_SEP)[:level + 1]) |
