Skip to content
Myr

Fix view decorators docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Grey Li · committed by Phil Jones · parent a82cc31 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/viewdecorators.rst+1 added-1 removed
140 unmodified lines
141 @wraps(f)142 def decorated_function(*args, **kwargs):143 template_name = template144 if template_name is None:145 template_name = f"'{request.endpoint.replace('.', '/')}.html'"145 template_name = f"{request.endpoint.replace('.', '/')}.html"146 ctx = f(*args, **kwargs)147 if ctx is None:148 ctx = {}149 elif not isinstance(ctx, dict):
22 unmodified lines