Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Jun 30, 2013
1 parent dcee107 commit 1887230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terms/managers.py
Expand Up @@ -18,7 +18,7 @@ def variants_dict(self):
d = cache.get(VARIANTS_DICT_CACHE_KEY)
if d is None:
d = {}
for term in self.get_query_set().iterator():
for term in self.get_query_set():
name_variants = term.name_variants()
for variant in name_variants:
d[variant] = name_variants
Expand All @@ -30,7 +30,7 @@ def replace_dict(self):
if d is None:
d = {}
template = 'terms/term_replace.html'
for term in self.get_query_set().iterator():
for term in self.get_query_set():
url = term.get_absolute_url()
name_variants = term.name.split('|')
context = {'url': url,
Expand Down

0 comments on commit 1887230

Please sign in to comment.