Skip to content
Myr

Make the decorators attribute on View a tuple by default

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

To discourage accidental runtime modification applying to all views.

authored by Oliver Beattie · committed by Oliver Beattie · parent ff59db1 · 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:flask/views.py+1 added-1 removed
58 unmodified lines
59 #: You can place one or more decorators in this list and whenever the60 #: view function is created the result is automatically decorated.61 #:62 #: .. versionadded:: 0.863 decorators = []63 decorators = ()6465 def dispatch_request(self):66 """Subclasses have to override this method to implement the67 actual view function code. This method is called with all
82 unmodified lines