summaryrefslogtreecommitdiff
path: root/docs/_ext/djangodocs.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_ext/djangodocs.py')
-rw-r--r--docs/_ext/djangodocs.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index 0f29341c34..8daca2bc6d 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -309,10 +309,14 @@ class DjangoStandaloneHTMLBuilder(StandaloneHTMLBuilder):
self.info(bold("writing templatebuiltins.js..."))
xrefs = self.env.domaindata["std"]["objects"]
templatebuiltins = {
- "ttags": [n for ((t, n), (l, a)) in xrefs.items()
- if t == "templatetag" and l == "ref/templates/builtins"],
- "tfilters": [n for ((t, n), (l, a)) in xrefs.items()
- if t == "templatefilter" and l == "ref/templates/builtins"],
+ "ttags": [
+ n for ((t, n), (k, a)) in xrefs.items()
+ if t == "templatetag" and k == "ref/templates/builtins"
+ ],
+ "tfilters": [
+ n for ((t, n), (k, a)) in xrefs.items()
+ if t == "templatefilter" and k == "ref/templates/builtins"
+ ],
}
outfilename = os.path.join(self.outdir, "templatebuiltins.js")
with open(outfilename, 'w') as fp: