Skip to content

Commit a541c2a

Browse files
greylipgjones
authored andcommitted
Fix view decorators docs
1 parent a82cc31 commit a541c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/patterns/viewdecorators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Here is the code for that decorator::
142142
def decorated_function(*args, **kwargs):
143143
template_name = template
144144
if template_name is None:
145-
template_name = f"'{request.endpoint.replace('.', '/')}.html'"
145+
template_name = f"{request.endpoint.replace('.', '/')}.html"
146146
ctx = f(*args, **kwargs)
147147
if ctx is None:
148148
ctx = {}

0 commit comments

Comments
 (0)