We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a82cc31 commit a541c2aCopy full SHA for a541c2a
docs/patterns/viewdecorators.rst
@@ -142,7 +142,7 @@ Here is the code for that decorator::
142
def decorated_function(*args, **kwargs):
143
template_name = template
144
if template_name is None:
145
- template_name = f"'{request.endpoint.replace('.', '/')}.html'"
+ template_name = f"{request.endpoint.replace('.', '/')}.html"
146
ctx = f(*args, **kwargs)
147
if ctx is None:
148
ctx = {}
0 commit comments