Fixed dumb bug

This commit is contained in:
Simon Willison 2020-02-04 08:43:05 -08:00 committed by GitHub
commit 6d672fe34c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ class BaseView(AsgiView):
"database_color": self.database_color,
},
}
if request and request.args.get("_context") and self.config("template_debug"):
if request and request.args.get("_context") and self.ds.config("template_debug"):
return Response.html(
"<pre>{}</pre>".format(
escape(json.dumps(template_context, default=repr, indent=4))