render-template
Simon Willison 2020-02-04 08:43:05 -08:00 zatwierdzone przez GitHub
rodzic 5d1b424cfc
commit 6d672fe34c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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))