Skip to content

Commit

Permalink
Fix view decorators docs
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli authored and pgjones committed May 21, 2021
1 parent a82cc31 commit a541c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/patterns/viewdecorators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Here is the code for that decorator::
def decorated_function(*args, **kwargs):
template_name = template
if template_name is None:
template_name = f"'{request.endpoint.replace('.', '/')}.html'"
template_name = f"{request.endpoint.replace('.', '/')}.html"
ctx = f(*args, **kwargs)
if ctx is None:
ctx = {}
Expand Down

0 comments on commit a541c2a

Please sign in to comment.